 |
 |
|
 |
09-17-2008, 12:35 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,555
|
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?
|
|
|
09-17-2008, 03:19 AM
|
#2 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Location: Nahariya, Israel
Posts: 8
|
try this,
Code:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
[[UIApplication sharedApplication] openURL:url];
|
|
|
09-17-2008, 06:12 PM
|
#3 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,555
|
"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 06:14 PM.
|
|
|
12-10-2008, 11:01 PM
|
#4 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 52
|
Quote:
Originally Posted by neurus
try this,
Code:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
[[UIApplication sharedApplication] openURL:url];
|
AWESOME! Thanks Neurus !!!!
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 570 |
| 29 members and 541 guests |
| armmzz, BrianSlick, chiataytuday, dacapo, donutzeatpeople, dschivas, Duncan C, elhanche, ewpaus@pobox.com, GameViewPoint, gpambrozio, headkaze, hiinnovation, JamunaDas45, Luke007, lukeirvin, MichaelE, michig54, nguyenhieu129, nichoel, rainy, Rudy, silverwiz, themathminister, tomtom100, vietanh100989, vikinara |
| Most users ever online was 1,187, 10-11-2011 at 08:09 AM. |
» Stats |
Members: 158,758
Threads: 89,201
Posts: 380,569
Top Poster: BrianSlick (7,129)
|
| Welcome to our newest member, dschivas |
|