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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-13-2009, 09:45 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 6
jaycyn94 is on a distinguished road
Default UINavigationController - Skip over a view when creating a new item?

I have an UINavigationController application where the navigation works like:



Main list -> view individual items -> edit parts of item



What I would like to do is be able to when I create a new item go directly to the edit page, then be able to navigate back out normally. I tried to set up my individual item controller to check in viewWillAppear that if this is a new item, pop over to the edit page. However when I do that, it seems to confuse the navigation controller, as it thinks it is on a different level of navigation.



It there a good way to jump a level or otherwise push two views across?
jaycyn94 is offline   Reply With Quote
Old 02-05-2012, 01:40 PM   #2 (permalink)
Registered Member
 
eclipseCSdev's Avatar
 
Join Date: Oct 2011
Posts: 18
eclipseCSdev is on a distinguished road
Default

Did u find an answer to this? I'm trying to achieve the same going 'forwards' plus also skipping (in some cases) when popping back
__________________
Contractor Expenses - expense tracker, mileage log, and freelancer news for I.T contractors, freelancers, and small business owners.
App Store Link
eclipseCSdev is offline   Reply With Quote
Old 02-05-2012, 07:16 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by jaycyn94 View Post
I have an UINavigationController application where the navigation works like:



Main list -> view individual items -> edit parts of item



What I would like to do is be able to when I create a new item go directly to the edit page, then be able to navigate back out normally. I tried to set up my individual item controller to check in viewWillAppear that if this is a new item, pop over to the edit page. However when I do that, it seems to confuse the navigation controller, as it thinks it is on a different level of navigation.



It there a good way to jump a level or otherwise push two views across?

If you are at your main list, and want to go directly to the edit parts view, but when the user clicks the back button you go back to view individual items, you should do this:

Call pushViewController:animated: on the view individual items controller, with animated = FALSE, and then immediately push the edit parts view controller with animated set to TRUE. This will add your view items view controller to the stack so the back button takes you there.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C 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
» Online Users: 332
3 members and 329 guests
guusleijsten, Kryckter, LEARN2MAKE
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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