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 08-10-2010, 04:29 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 240
seenu87 is on a distinguished road
Exclamation how to redirect to secondviewcontroller

how to redirect to secondviewcontroller when clicked the button in firstviewcontroller
seenu87 is offline   Reply With Quote
Old 08-10-2010, 05:22 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 3
martinkuhk is on a distinguished road
Default

Quote:
Originally Posted by seenu87 View Post
how to redirect to secondviewcontroller when clicked the button in firstviewcontroller
Suppose you are using a UINavigationController with the firstviewcontroller as the rootviewcontroller. When you want to push the secondviewcontroller, create an instance of secondviewcontroller first and then call the pushviewcontroller method.

It looks like this:

(suppose the class is SecondViewController)

SecondViewController *secondviewcontroller=[[SecondViewController alloc] init];

[self.navigationController pushviewcontroller:secondviewcontroller animated:YES];

Last edited by martinkuhk; 08-10-2010 at 05:30 AM.
martinkuhk is offline   Reply With Quote
Old 08-10-2010, 05:39 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 240
seenu87 is on a distinguished road
Question

Quote:
Originally Posted by martinkuhk View Post
Suppose you are using a UINavigationController with the firstviewcontroller as the rootviewcontroller. When you want to push the secondviewcontroller, create an instance of secondviewcontroller first and then call the pushviewcontroller method.

It looks like this:

(suppose the class is SecondViewController)

SecondViewController *secondviewcontroller=[[SecondViewController alloc] init];

[self.navigationController pushviewcontroller:secondviewcontroller animated:YES];

I am using View based application its just display the firstviewcontroller when program executes

i want to displa the secondviewcontroller when pressing the button in the firstview controller
seenu87 is offline   Reply With Quote
Old 08-10-2010, 08:03 AM   #4 (permalink)
Registered Member
 
Ice_2k's Avatar
 
Join Date: Apr 2010
Location: Bucharest, Romania
Posts: 148
Ice_2k is on a distinguished road
Default

take a look at presentModalViewController
Ice_2k 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: 328
9 members and 319 guests
flamingliquid, ilmman, iram91419, linkmx, nadav@webtview.com, Objective Zero, Paul Slocum, stanny, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

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