2010-11-23 15 views

答えて

2
NSString *telephoneNumber = @"+123456789" 
NSURL *target = [[[NSURL alloc] initWithString:[NSString stringWithFormat:@"tel:%@", telephoneNumber]] autorelease]; 
[[UIApplication sharedApplication] openURL:target]; 

このような場合を意味しましたか?

+1

こんにちはNR4TRでは、文字列はtel:の代わりにtel://にする必要があります。 NSURL * target = [[[NSURL alloc] initWithString:[NSString stringWithFormat:@ "tel://%@"、telephoneNumber]] autorelease];あなたの答えを編集してください。 – Krishnan

+0

こんにちは!実際には、 "//"その場合は義務ではない、ちょうどチェックした:)おかげでありがとう – knuku

関連する問題