I have created a windows based project in XCode using IPhone as target platform and then I added a ViewController Sub Class. Now I want to make my newly added class to be shown at first screen. What is the proper way to achieve it?
Regards.
I have created a windows based project in XCode using IPhone as target platform and then I added a ViewController Sub Class. Now I want to make my newly added class to be shown at first screen. What is the proper way to achieve it?
Regards.
Modify your appdelegate, you'll find something like this:
[window addSubview:myView];
[window makeKeyAndVisible];
Change my view to the view you want to show first.
That is the correct way i found
first declare your view controller in appdelegate.h
SaveViewController *SaveController;
also
@property (nonatomic, retain) SaveViewController * SaveController;
then synthesize it in your appdelegate.m file
@synthesize SaveController;
now add the following lines of code in your application didFinishLaunching Method
SaveController = [[SaveViewController alloc]initWithNibName:@"SaveViewController" bundle:nil];
[window addSubview:[SaveController view]];
[self.window makeKeyAndVisible];
Thats all.. you are done :)