views:

745

answers:

4

Hi there, i am starting my experience with iphone sdk. and i have a question, which is i am trying to create two pages to the app but i don't know how to link them or design them. like when i start the Xcode i find one page named View to design in it, i want to make that page a welcoming page then the user choose one of the three choices he see in that page. Once he clicked on one of them the program take him to the next page or the page he chose.

thank you

A: 

Take a look at using UIViewController's

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

method. You can display your initial view, and when the user presses one of the buttons, display the intended view over top. If you build a new project, and choose "Utility Application" you will get some sample code for how this works.

David Kanarek
+1  A: 

You really need a good book, I recommend Beginning iPhone 3 Development by Apress.

fuzzy lollipop
A: 

The standard approach on iPhone is a drill-down. Place a UINavigationController in your NIB, make the root-level view your welcome page. Then navigate to dependent views by invoking pushViewController on that navigation controller.

This is a very high-level description; you'd have to fill a lot of blanks. If you create a new project and specify a "navigation-based application", you'll get quite a bit of boilerplate code for this approach.

Seva Alekseyev
A: 

i also got problem with this issue. How can i connect buttons in the example of this Project. zip

Here's the link of the file---> (http://www.2shared.com/file/12046081/65fad040/Project.html).

Example: Button General Information connect to 3rd page, button Trainer information connect to the next pages number.

May i need to create a new .h/.m/xib file for each of the pages?? then, where's the code to connect the button to the page. Also , how (the steps) to make it true??

All of your replies i thank you all first. Very appreciated it =)

ejaa