简体   繁体   English

在iOS中找到SIM卡可用性的未公开方法?

[英]Undocumented method to find sim card availability in ios?

I have found an undocumented method for detecting sim card availability in iphone. 我发现了一种未记录的方法来检测iPhone中的SIM卡可用性。 This method needs CoreTelephony.framework 此方法需要CoreTelephony.framework

NSString * CTSIMSupportGetSIMStatus();
int CTGetSignalStrength();

NSString *status = CTSIMSupportGetSIMStatus();

NSLog(@"Sim card status %@",status); 

This method works well. 此方法效果很好。 can i use this method in my project? 我可以在项目中使用这种方法吗? If i use this undocumented method, will apple reject my app? 如果我使用这种未公开的方法,苹果会拒绝我的应用程序吗? plz let me know... Thanks 请让我知道...谢谢

You can not use undocumented method as Apple says that they can change the implementation for bug fixing or by updating the SDK cause App crash. 您不能使用未记录的方法,因为Apple表示他们可以更改错误修复的实现或通过更新SDK导致应用程序崩溃。 They do not allow the use of Private API and trace at submission at store. 他们不允许在商店提交时使用私有API和跟踪。 Mostly private method can be found in debugging at Xcode and start with _Underscore so you can try alternative to achieving things if you do not want to get reject your application later at submission. 大多数情况下,私有方法可以在Xcode的调试中找到,并以_Underscore开头,因此,如果您不想在提交后拒绝应用程序,可以尝试使用替代方法来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM