iPhone SDK-所有者名称? [英] iPhone sdk - owners name?

查看:67
本文介绍了iPhone SDK-所有者名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone SDK中是否有一种方法可以获取拥有手机的联系人的姓名? 我看到我的应用程序已被破解,我想更新一个发行版,以检查它是否为破解版,然后显示以下内容:

Is there a way in the iPhone sdk to get the name of the contact who own's the phone? I see that my app has been cracked, and I would like to update a release which checks to see if it a cracked version and then display the following:

你好(人名).我看到您正在使用(应用程序名称)的破解版本.如果您喜欢此应用程序,请购买它来支持我.

Hello (Persons name). I see you are using a cracked version of (Application Name). If you like this application, please support the me by purchasing it.

推荐答案

就像前面提到的海报一样,您无法获得用户名.但是,您可以通过以下方式获取电话号码

Like previous poster mentioned, you can't get the user's name. You can, however, get the phone number by doing

[[[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"]

[[NSUserDefaults standardUserDefaults] objectForKey: @"SBFormattedPhoneNumber"]

来自此处

还有关于版权保护的问题:iPhone应用程序版权保护的问题在于,苹果公司不提供发行格式或任何与远程相关的公共文档.因此,如果您根据那些未记录在案的东西进行检查,那么您实际上是在矿场上变戏法.最终,Apple应该真正修复这个损坏的系统.

Also regarding copy-protection: problem with iPhone app copy-protection is that Apple does not provide public docs for distribution format or anything even remotely related. So if you base your checks around those undocumented things, you are really juggling on a mine field. Ultimately Apple should really fix this broken system.

这篇关于iPhone SDK-所有者名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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