iOS 4.2 - Return to app after phone call

前端 未结 6 1703
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 22:56

I can successfully initiate a phone call within my app using the following:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"tel://12345678         


        
6条回答
  •  庸人自扰
    2020-11-29 23:47

    I know the question is very old, but currently you can do this (at least on iOS 5) by using telprompt://, like:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://123456789"]];
    

    iPhone will show alert view confirmation and when call ends, your app shows again, instead of iPhone's call app.

提交回复
热议问题