iPhone sdk - owners name?

寵の児 提交于 2019-12-12 21:16:47

问题


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.


回答1:


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"]

Taken from here

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.




回答2:


StackOverflow: Reducing Piracy of iPhone Applications




回答3:


That's not available because that's a privacy issue.

(I know, there's some irony there, considering your user just cracked your app, but I digress...)

There's lots of discussion about anti-cracking measures. ArsTechnica has a story about one developer. Try Google or Apple's Dev Forums (thread).



来源:https://stackoverflow.com/questions/1321552/iphone-sdk-owners-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!