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 12-05-2010, 06:38 PM   #1 (permalink)
Registered Member
 
SPAS's Avatar
 
Join Date: Jan 2010
Posts: 132
SPAS is on a distinguished road
Default UISegmentedControl, Load XIB's instead of Webpages

Hi, here's the correct code for loading webpages from a Segmented Control from the implementation file. Could someone please tell me what is the line of code that calls a XIB to load (thus replacing the bold line below)? Thank You!

-(IBAction)changeSeg {

if(segment.selectedSegmentIndex ==0) {

[webPage loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
}
SPAS is offline   Reply With Quote
Old 12-05-2010, 06:50 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

You mean initWithNibName method of the view controller?
baja_yu is offline   Reply With Quote
Old 12-05-2010, 06:57 PM   #3 (permalink)
Banned
 
Join Date: May 2010
Location: New Jersey
Posts: 595
Chessin is on a distinguished road
Send a message via AIM to Chessin
Default

Quote:
Originally Posted by SPAS View Post
Hi, here's the correct code for loading webpages from a Segmented Control from the implementation file. Could someone please tell me what is the line of code that calls a XIB to load (thus replacing the bold line below)? Thank You!

-(IBAction)changeSeg {

if(segment.selectedSegmentIndex ==0) {

[webPage loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
}
How about, YouTube - Xcode Tutorial 3 - Switching Views With a UISegmentedControl

Its my tutorial
Chessin is offline   Reply With Quote
Old 12-05-2010, 07:18 PM   #4 (permalink)
Registered Member
 
SPAS's Avatar
 
Join Date: Jan 2010
Posts: 132
SPAS is on a distinguished road
Default

Quote:
Originally Posted by Chessin View Post
Makes perfect sense. Never apologize for going too fast in a video tutorial since the viewer can pause at any time.
SPAS 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: 391
7 members and 384 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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