 |
 |
|
 |
09-16-2008, 11:35 PM
|
#1 (permalink)
|
|
Magic Hands' Daddy
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
|
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, 02:19 AM
|
#2 (permalink)
|
|
New Member
Join Date: Aug 2008
Location: Nahariya, Israel
Posts: 7
|
try this,
Code:
NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
[[UIApplication sharedApplication] openURL:url];
|
|
|
09-17-2008, 05:12 PM
|
#3 (permalink)
|
|
Magic Hands' Daddy
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
|
"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.
|
|
|
12-10-2008, 10:01 PM
|
#4 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 51
|
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: 405 |
| 40 members and 365 guests |
| ankushthemaster, bono_aem, bravetarget, byobyohae, CAmaninacan, CHV, Dracor, dre, drhansen, funkyspider, gandohr, gbaldwin9, giampo, gpacheco, Gudus, HemiMG, iSkythe, iTrackiGiveaway, JasonR, Krakau, KSA_girl, lamy, leeus, Leopard, majjaz, mikeyb, Mr Jack, NewiPhoneDeveloper, oscar.peli, OviV, pereorra, rawjam, shad1236, shark4ever, Tambourin, The Blind Bandit, thinriver, Trisect Development, wassupdoc, _nivek |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,297
Threads: 39,093
Posts: 171,397
Top Poster: smasher (2,575)
|
| Welcome to our newest member, thinriver |
|