Posted By

Leech on 09/18/08


Tagged

url safari open iphone SDK


Versions (?)

Who likes this?

24 people have marked this snippet as a favorite

magicrebirth
Netzach
joshhepworth
jdstraughan
Blaenk
emoseman
gerhardsletten
umang_nine
davidsi
vmonje
avanadra
LeeProbert
bobbym245
suibhne
sam_symons
milophone
FumarMata
synced
andrewroycarter
djbabylon
epaga
wpellis
magickaito
AndreyZarembo


Open URL in Safari


 / Published in: Objective C
 

URL: http://www.iphonedevsdk.com/forum/iphone-sdk-development/3927-open-safari.html

This is the way to open a specific URL in the Mobile Safari of the iPhone

  1. NSURL *url = [ [ NSURL alloc ] initWithString: @"http://www.cnn.com" ];
  2. [[UIApplication sharedApplication] openURL:url];

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: daknok on June 11, 2011

Be sure to release url or there'll be a memory leak.

You need to login to post a comment.