suchen

Heim  >  Fragen und Antworten  >  Hauptteil

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

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

巴扎黑巴扎黑2889 Tage vor229

Antworte allen(2)Ich werde antworten

  • ringa_lee

    ringa_lee2017-04-17 17:56:17

    试试这个:

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

    Antwort
    0
  • 高洛峰

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

    app单例调用openUrl

    Antwort
    0
  • StornierenAntwort