Hi ,
I have in my .xib file two views,
one is the main view that connected to the view outlet from the file's owner and
the second one I named ABC from the code
-IBOutlet UIView *ABC;
my question is how do I call the ABC view from another class if ABC view isn't
connected to the "view" outlet from the file's owner
I can call the main view from another class
but I don't know how to call the ABC view.
maybe I can use the ABC view as a @property and call it from the other class?
Thanks for the help!!!
I have in my .xib file two views,
one is the main view that connected to the view outlet from the file's owner and
the second one I named ABC from the code
-IBOutlet UIView *ABC;
my question is how do I call the ABC view from another class if ABC view isn't
connected to the "view" outlet from the file's owner
I can call the main view from another class
Code:
LoginRegisterViewController *viewController = [[LoginRegisterViewController alloc] initWithNibName:@"LoginRegisterViewController" bundle:nil];
self.loginRegisterViewController = viewController;
[viewController release];
UIView *newView = loginRegisterViewController.view;
[self.view addSubview:newView];
[newView release];
but I don't know how to call the ABC view.
maybe I can use the ABC view as a @property and call it from the other class?
Thanks for the help!!!