Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 06-22-2011, 09:34 AM   #1 (permalink)
Registered Member
 
bezzawezza's Avatar
 
Join Date: Jun 2011
Location: Wales, UK
Posts: 144
bezzawezza is on a distinguished road
Default Navigation Controller tutorial?

I can switch back and for between two XIBs using Round Rect Buttons but if I try and use the Navigation option the IB won't allow me presumably because I am not using the UINavigationcontroller and therefore there is no navigation stack created. If I place a bar button item in the top left then this works in the same way as the Round Rect Button but I am assuming Apple won't be happy with this workaround.
Can anyone tell me if I am right and if so how would I go about creating this back button?
Ultimately my goal is to have a UITableview with 4 or 5 cells with options in which when selected point to different XIB files which then have information on that page and the user is able to get back to the Main Menu page by pressing the back arrow icon in the top left as per normal iOS stuff.
If anyone can help me with this then it would be much appreciated. I am able to create a UITable and fill it using NSArray with the required options but then attributing individual cells to point XIB is proving difficult.
Thanks in advance
bezzawezza is offline   Reply With Quote
Old 07-01-2011, 12:41 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 14
hiaw is on a distinguished road
Default

Hi,

If you don't mind doing it in code. All you have to do is implement the

Code:
- (void)tableView:(UITableView *)table didSelectRowAtIndexPath:(NSIndexPath *)indexPath
and return the correct view controller class like this

Code:
    DCFAQWebView *faqWebView = [[DCFAQWebView alloc] initWithNibName:DC_FAQ_WEB_VIEW_CONTROLLER
                                                              bundle:nil];    
    
    [self.navigationController pushViewController:faqWebView animated:YES];
    
    [faqWebView release];
hiaw is offline   Reply With Quote
Old 08-19-2011, 03:11 AM   #3 (permalink)
Registered Member
 
blackbook1991's Avatar
 
Join Date: Aug 2011
Posts: 20
blackbook1991 is on a distinguished road
Send a message via Yahoo to blackbook1991
Default

Hello

I posted a simple working project/example on using UINavigationController. Something that would look like this:


You may download the project here. Enjoy coding!
__________________
Enjoy All The Way!
blackbook1991 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,962
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:12 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0