Phone call number with hashtag on iOS

后端 未结 3 1453
长发绾君心
长发绾君心 2020-12-07 04:58

How do I make a call to this number *199*123456789# on iOS?

I used the following code but it doesn\'t work.

[[UIApplication sharedApplication] openUR         


        
3条回答
  •  自闭症患者
    2020-12-07 06:01

    Replace * with %2A and # with %23:

    NSURL *tel = [NSURL URLWithString:@"tel:%2A199%2A123456789%23"];
    [[UIApplication sharedApplication] openURL:tel];
    

提交回复
热议问题