在ios中找到sim卡可用性的未记录方法? [英] Undocumented method to find sim card availability in ios?

查看:335
本文介绍了在ios中找到sim卡可用性的未记录方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一种用于检测iphone中SIM卡可用性的无证方法。此方法需要CoreTelephony.framework

I have found an undocumented method for detecting sim card availability in iphone. This method needs 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

推荐答案

您不能使用未记录的方法,因为Apple说他们可以更改bug的实现修复或更新SDK导致应用程序崩溃。他们不允许在商店提交时使用私有API和跟踪。大多数私有方法都可以在Xcode的调试中找到,并从_Underscore开始,这样如果你不想在提交时拒绝你的应用程序,你可以尝试替代实现。

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. They do not allow the use of Private API and trace at submission at store. 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.

这篇关于在ios中找到sim卡可用性的未记录方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆