简体   繁体   中英

iPhone sdk - owners name?

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

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.

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 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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