2010-06-23 2 views

Répondre

6
NSString *phoneNumber = @"+33(0)7324 65335-22"; 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", phoneNumber]]]; 

Je ne suis pas sûr de la "(0)" ...

+0

Y at-il des documents pour cela? – dontWatchMyProfile

+2

c'est juste UIApplication ouvrant une URL. Pour la liste complète des préfixes disponibles pour différentes fonctions, consultez ceci: http://iphonedevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html – Pripyat

Questions connexes