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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-12-2009, 07:31 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Melbourne, Australia
Posts: 54
Exclamation Navigation crumb trail

My quandary is this...

I am making an app in which there will be 3 levels of menus. For instance, main menu, sub-menu and then 'items'. What I want to do is...I want to be able to implement a navigation controller so that if im at the 'item' level I can jump straight back to the main menu via one click of the button.

In essence, I want crumb trail buttons in the navigation controller?

E.g. If im at item level the buttons in the navigation controller will be as follows...

Main menu > Sub-menu >

Is this possible with UINavigationController? If not, are there any other ways to implement this?

ANy help is greatly appreciated!
greenflame is offline   Reply With Quote
Old 11-12-2009, 11:20 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
Default

I don't think there's a built in way to do this. It's possible that you could do this by creating a custom control, but you'd probably have to draw all of the images for the different pieces, and be able to stretch and position them manually. I'm not sure if anyone's ever done this before, but it seems like a lot of work.

Also, just to throw this out there, Apple specifically mentions this in their Human Interface Guidelines as something not to do:
Quote:
The standard back button gives users a reliable way to return to the previous screen, so it’s important to avoid altering the button’s behavior. In particular, you should avoid creating a multi-segment back button, such as the one shown in Figure 6-6.

Using a multi-segment back button causes several problems:

* The extended width of a multi-segment back button does not leave room for the title of the current screen.
* There is no way to indicate the selected state of an individual segment.
* The more segments there are, the smaller the hit region for each one, which makes it difficult for users to tap a specific one.
* Choosing which levels to display as users navigate deeper in the hierarchy is problematic.

If you think users might get lost without a multi-segment back button that displays a type of breadcrumb path, it probably means that users must go too deeply into the information hierarchy to find what they need. To address this, you should flatten your information hierarchy.
What's interesting is that they do show an image of what this might look like, but it's not clear whether this is some undocumented function of the SDK or an old prototype, or whether they just mocked up this image to give an example of what they consider a bad practice.

I'm not sure whether they'd actually reject an app over this, but they have been pretty fickle about such issues before, so it may not be worth the risk in any case.
ChrisL is offline   Reply With Quote
Old 11-12-2009, 11:45 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Melbourne, Australia
Posts: 54
Default

Thanks for that ChrisL!!

Yeah Apple are fickle to say the least when it comes to app submission so you're right it may not be worth my time.

Its a pity because I had just got the implementation working quite smoothly using a UISegmentedControl.

Cheers
greenflame is offline   Reply With Quote
Reply

Bookmarks

Tags
crumb trails, navigation, navigation bar, navigation buttons, navigation controller

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
» Online Users: 352
20 members and 332 guests
ADY, Dani77, e2applets, Herbie, JasonR, keeshux, linkmx, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, sebasx, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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