1. 首先要导入CoreTelephony的Private Framework;

 

2. 在导入CoreTelephony后使用CTSettingCopyMyPhoneNumber()将出现以下警告:

Semantic Issue
Implicit declaration of function 'CTSettingCopyMyPhoneNumber' is invalid in C99

 解决方法为在使用CTSettingCopyMyPhoneNumber()的.m文件中加入如下语句:

extern NSString *CTSettingCopyMyPhoneNumber();

 

相关文章:

  • 2021-05-17
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-08-08
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案