Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-16-2008, 11:35 PM   #1 (permalink)
Magic Hands' Daddy
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 21
Posts: 740
Rep Power: 1
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default Open Safari?

In many apps, you're able to click on a logo or link of some sort which makes the current app close and brings up safari with some webpage.

how is this done?
smithdale87 is offline   Reply With Quote
Old 09-17-2008, 02:19 AM   #2 (permalink)
Junior Member
 
Join Date: Aug 2008
Location: Nahariya, Israel
Posts: 7
Rep Power: 0
neurus is on a distinguished road
Default

try this,
Code:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
[[UIApplication sharedApplication] openURL:url];
neurus is offline   Reply With Quote
Old 09-17-2008, 05:12 PM   #3 (permalink)
Magic Hands' Daddy
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 21
Posts: 740
Rep Power: 1
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

"Doesn't work, any other suggestions?"

**Edit** Never mind. It doesnt work if you don't include the "http://". I added it and it worked.

Thanks a ton!

Last edited by smithdale87; 09-17-2008 at 05:14 PM.
smithdale87 is offline   Reply With Quote
Old 12-10-2008, 10:01 PM   #4 (permalink)
Member
 
Join Date: Aug 2008
Posts: 50
Rep Power: 1
bouche is on a distinguished road
Default

Quote:
Originally Posted by neurus View Post
try this,
Code:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
[[UIApplication sharedApplication] openURL:url];
AWESOME! Thanks Neurus !!!!
bouche 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: 175
11 members and 164 guests
Alexman, atsd, BostonMerlin, dejuan, lepetitapps, Neverever, P-atr1k, Raphy, Sekharbethalam, Slecorne, _mubashir
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 8,173
Threads: 20,132
Posts: 89,979
Top Poster: RickMaddy (2,121)
Welcome to our newest member, dejuan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0