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 05-29-2011, 01:03 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 35
scrumsolutions is on a distinguished road
Question Open a view controller

Hi All,

My previous post may have been a little confusing (I'm new to iOS dev).

I have to sets of files (*.m, *.h and *.xib).

One is the login page, and upon successful validation I want to change the view to the landing page view.

Inside the validation method I have if else statement (greatly simplified for this example);

Code:
 if (txtURL.text.length == 0 ) {
        [valInput show];
    } else {
        // CODE TO LOAD NEW VIEW
    }
What is the code that I need to write to make it load an alternative view?

Cheers

Carl
[::TILL THE END::]
scrumsolutions is offline   Reply With Quote
Old 05-29-2011, 05:03 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Depends on how you structured your app, do you have a navigation controller and so on.
baja_yu is offline   Reply With Quote
Old 05-30-2011, 02:10 AM   #3 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

for example:
Code:
[self presentModalViewController:otherViewController animated:YES];
or for navigation controller:
Code:
[self.navigationController pushViewController:otherViewController animated:YES];
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
loading view, view, view 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: 335
6 members and 329 guests
Dnnake, dre, iOS.Lover, jenniead38, Kirkout, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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