Hi All,
I'm just starting out on working with objective c and iPhone dev, so far so good, but I have a problem with loading different views (so that I can navigate between Xib's).
In one interface I have;
test.h file
Code:
@property (nonatomic, retain) IBOutlet UIView *openView;
test.m file
Code:
@synthesize openView;
I have linked the openView to the view in the test.xib.
The problem I have is that I want to be able to open this view from another file, but the property doesn't appear to be globally available to be called from other m files. For example I have some code in callFile.m;
Code:
UIView *landingpage = [[UIView alloc] initWithFrame:[[UIScreen *] applicationFrame]];
self.view = landingpage;
[landingpage release];
Where I have put the * is where I sucessfully put mainscreen as a test to make sure the code was working, but I don't appear to be able to put in other view names.
Do I need to create a method in the test.m file which self references the view I'm trying to load? I've created a method in callFile.m but again this isn't visible to my test.m.
Any help would be appreciated,
Cheers
Carl
[::TILL THE END::]