recherche

Maison  >  Questions et réponses  >  le corps du texte

objective-c - iOS跳转到拨号界面,怎么实现?

1.跳转到拨号界面,并不是直接拨打电话!!!

巴扎黑巴扎黑2889 Il y a quelques jours232

répondre à tous(2)je répondrai

  • ringa_lee

    ringa_lee2017-04-17 17:56:17

    Essayez ceci :

    NSString *telNumber = [NSString stringWithFormat:@"tel:%@", @"88888888"];
    NSURL *aURL = [NSURL URLWithString:telNumber];
    if ([[UIApplication sharedApplication] canOpenURL:aURL]) {
        [[UIApplication sharedApplication] openURL:aURL];
    }

    répondre
    0
  • 高洛峰

    高洛峰2017-04-17 17:56:17

    l'application singleton appelle openUrl

    répondre
    0
  • Annulerrépondre