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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 09-05-2010, 02:07 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Location: New Zealand
Posts: 49
jvpython is on a distinguished road
Send a message via Skype™ to jvpython
Post View transitions

Hi everyone,
I my iphone app I have a modal viewcontroller which slides up on top of navigationcontroller when the user presses a button. The thing is I would like the parent controller, in this case the navigationcontroller to push another view controller ones the modal view controller has gone if the user presses a certain button.

But I have tried methods like:

Code:
[self.navigationController presentModalViewController:self.myModalView animated:YES];
self.myModalView = nil;

if (myModalView.status == @"OKButton") {
[self.navigationController pushViewController:theOtherView animated:YES];
}
That doesn't work.

I also tried calling a method in the parent controller that would push the view from viewDidDisapear. That didn't work either.

PS: I would like the user to see the navigation immediately after the modal view slides down.

Any help would be appreciated. Thanks
JVPython
jvpython is offline   Reply With Quote
Old 09-07-2010, 06:07 AM   #2 (permalink)
Tutorial Author
 
Join Date: Feb 2009
Posts: 223
mr tickle is on a distinguished road
Default

Quote:
Originally Posted by jvpython View Post
Hi everyone,
I my iphone app I have a modal viewcontroller which slides up on top of navigationcontroller when the user presses a button. The thing is I would like the parent controller, in this case the navigationcontroller to push another view controller ones the modal view controller has gone if the user presses a certain button.

But I have tried methods like:

Code:
[self.navigationController presentModalViewController:self.myModalView animated:YES];
self.myModalView = nil;

if (myModalView.status == @"OKButton") {
[self.navigationController pushViewController:theOtherView animated:YES];
}
That doesn't work.

I also tried calling a method in the parent controller that would push the view from viewDidDisapear. That didn't work either.

PS: I would like the user to see the navigation immediately after the modal view slides down.

Any help would be appreciated. Thanks
JVPython
is this a string comparison

Code:
myModalView.status == @"OKButton"
if it is, you cannot do that, string comparisons are not "exactly equal to"

if ([mystring isEqualToStringtherstring])
mr tickle is offline   Reply With Quote
Old 09-07-2010, 02:58 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Location: New Zealand
Posts: 49
jvpython is on a distinguished road
Send a message via Skype™ to jvpython
Default

Hi
I fixed my problem. Thanks for the reply anyway.


Cyril
jvpython is offline   Reply With Quote
Reply

Bookmarks

Tags
navigation controller, transition, view

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: 380
15 members and 365 guests
AragornSG, ChrisYates, coolman, davejas69, givensur, hussain1982, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, stanny, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

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