Quote:
Originally Posted by svenJ
Hello there,
I'm new to developing with object-C and iPhone apps using Cocoa.
The past couple of weeks I'm trying to understand the code and how this works with interface builder. I've made a couple of sample apps with every app it's own purpose. I want to combine all these apps to one app, rewriting it from scratch. But the complete idea of how these 'pages'/'views' work isn't completely clear for me.
What I want is, when the app finished loading, an image and a button (in one screen/view). When you touch the button you'll get a new screen with a tabbar (3 buttons so 3 different screens).
Does every screen/view has it's own xib-file? How do I control which view is shown? Etc. Basically I'm looking for more information on this process. If anybody can help me understand this it would be greatly appreciated.
I'd like to start all my apps as a 'windows based application' as I don't know what the other 'presets' exactly hold. This way I start as clean as possible.
Thanks in advance!
|
Im new also and had a similar problem, which someone here helped me with. if im understanding you correctly your app starts similar to mine. i have a start screen with an image and a button, then i have viewController files added which are pushed to from the button pressed on start screen. this is the code that pushed the new screen
- (IBAction) clickCreateBook {
NewNameViewController *newController = [[NewNameTableViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:newController];
[self presentModalViewController:navController animated:YES];
[newController release];
[navController release];
this went in my first screen view controller.m file