Quote:
Originally Posted by mikolo
Hi, thank you but i become the error: expected specifier-qalifier-list before 'NowHereViewController'!
I don`t konw what does this means? Can you help me again? I read also about protocol... but i don`t understand ... the apple help ist realy difficult!
|
OK i got it now.. but a little bit different and with one warning! Here ist my result:
In NowHereViewController.m i wrote:
PHP Code:
- (void)viewDidLoad {
NSLog(@" ---- viewDidLoad ---- ");
[self.view addSubview:loginView];
loginView.controller = self;
[loginView initLoginView];
[super viewDidLoad];
}
In LoginView.h i have:
PHP Code:
@interface LoginView : UIView {
UIViewController *controller;
}
@property (nonatomic, retain) UIViewController *controller;
in Login.m i can call the method like this:
PHP Code:
[controller swichView:(@"ContactListView")];
but here comes a warning like this: 'UIViewController' may not respond to '-switchView:'
Maybe someone knows.. how i fix also this warning.. but when i try to do all with NowHereViewController it doesn`t work!