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 10-06-2010, 04:18 AM   #1 (permalink)
Registered Member
 
jimmy's Avatar
 
Join Date: Aug 2010
Posts: 52
jimmy is on a distinguished road
Default Controller View Help

how do change the view from one controller to another controller?....help me with the syntax.thanks...
jimmy is offline   Reply With Quote
Old 10-06-2010, 04:32 AM   #2 (permalink)
YQLabs
 
Join Date: Jul 2010
Posts: 105
Dhanunjaya is on a distinguished road
Default

Quote:
Originally Posted by jimmy View Post
how do change the view from one controller to another controller?....help me with the syntax.thanks...
Hi,

u mean navigating from one view to another view here is syntax


[self.navigationController presentModalViewController:nextViewControllerObjec t animated:YES];

hope it will help u...

Regards
Dhanunjaya M
__________________
Dhanunjaya
www.yqlabs.com
Dhanunjaya is offline   Reply With Quote
Old 10-06-2010, 05:04 AM   #3 (permalink)
Registered Member
 
jimmy's Avatar
 
Join Date: Aug 2010
Posts: 52
jimmy is on a distinguished road
Default

-(IBAction)clickMeid)sender{

[self.navigationController presentModalViewController:fineViewController animated:YES];
}

//is this syntax correct.i dont see error but still i dont see change in view.Thanks for the response.
jimmy is offline   Reply With Quote
Old 10-06-2010, 05:11 AM   #4 (permalink)
YQLabs
 
Join Date: Jul 2010
Posts: 105
Dhanunjaya is on a distinguished road
Default

Quote:
Originally Posted by jimmy View Post
-(IBAction)clickMeid)sender{

[self.navigationController presentModalViewController:fineViewController animated:YES];
}

//is this syntax correct.i dont see error but still i dont see change in view.Thanks for the response.
(IBAction)clickMeid)sender{
if(nextViewControllerObject == nil)
{

nextViewControllerObject = [[NextViewController alloc] initWithNibName:@"NextViewController" bundle:nil];
}

if(addNavigationController == nil)
addNavigationController = [[UINavigationController alloc] initWithRootViewController:nextViewControllerObjec t];

[self.navigationController presentModalViewController:addNavigationController animated:YES];
}

here addNavigationController declared in .h file as UINavigationController Class object

Regards
Dhanunjaya
__________________
Dhanunjaya
www.yqlabs.com
Dhanunjaya is offline   Reply With Quote
Old 10-06-2010, 05:34 AM   #5 (permalink)
Registered Member
 
jimmy's Avatar
 
Join Date: Aug 2010
Posts: 52
jimmy is on a distinguished road
Post

I have 2 controller files.FirstControlllerView is linked with the Delegate file.
Now i want to link the FirstControllerView with the SecondViewController.
Sorry i quite didnt get ur code.
jimmy is offline   Reply With Quote
Old 10-07-2010, 11:25 AM   #6 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 15
phoenix96 is on a distinguished road
Default

Quote:
Originally Posted by jimmy View Post
-(IBAction)clickMeid)sender{

[self.navigationController presentModalViewController:fineViewController animated:YES];
}

//is this syntax correct.i dont see error but still i dont see change in view.Thanks for the response.
If you're not using a navigationController (and it sounds like you're not), you can just use:

-(IBAction)clickMeid)sender{
[self presentModalViewController:fineViewController animated:YES];
}
__________________
myGuestList - A complete guest list planning tool for any kind of event!
phoenix96 is offline   Reply With Quote
Old 10-07-2010, 11:51 AM   #7 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
ChrisL is on a distinguished road
Default

Have you read the View Controller Programming Guide? If not, that's a good place to start.
ChrisL is offline   Reply With Quote
Reply

Bookmarks

Tags
controller, 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: 388
16 members and 372 guests
AragornSG, ChrisYates, coolman, davejas69, givensur, hussain1982, iAppDeveloper, jbro, Kryckter, locombiano89, Mah6447, Meoz, stanny, stevenkik, 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:46 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0