2012-02-15 3 views

答えて

1

はい、あなたは携帯電話は通話をするために理解していること、実際にURLリクエストをすることができ、このあなたも、ソースコード

0

はジャストボタンをクリックで次のコードを追加します

- (無効)のmakeCall {

NSString * mobileNumber = @"+9112345678"; 

UIDevice *device = [UIDevice currentDevice]; 
    if ([[device model] isEqualToString:@"iPhone"]) 
    { 
     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",mobileNumber]]]; 
    } 
    else 
    { 
     UIAlertView *Notpermitted=[[UIAlertView alloc] initWithTitle:nil message:@"Your device doesn't support calling feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; 
     [Notpermitted show]; 
    } 
} 
関連する問題