2014-11-05 72 views
2

直到iOS8,我才能使用下面的代碼從我的應用程序打開FaceTime應用程序。以編程方式打開FaceTime,沒有任何號碼或蘋果ID - iOS8

如果我有號碼,直接撥打電話,如果它是零,它只會打開FaceTime。

但是自iOS8以來,如果是空號,FaceTime根本不會打開。

NSString *temp [email protected]"facetime://"; 
     if(number && number.length>0){ 
      temp = [temp stringByAppendingString:number]; 
     } 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:temp]]; 

回答

0

的iOS接受以下網址:

facetime://14085551234 
facetime://[email protected] 

根據自己FaceTime Links

如果FaceTime沒有用空號碼啓動,它可能只是他們清理舊代碼的方式。

+0

使用錨標記時的相似問題 - 應用程序打開,但要調用的號碼/電子郵件未傳遞到應用程序。思考? http://stackoverflow.com/questions/27749122/apple-facetime-url-scheme-not-initiating-call – 2015-01-06 18:37:31