Safe ios application from hacking - objective-c
It is not that simple and cannot be doubted in some words or code snippets. But you can check it out:
http://www.shmoopi.net/ios-anti-piracy/iphone-piracy-protection-code-tutorial-2/
http://www.cocos2d-iphone.org/forum/topic/7667
http://thwart-ipa-cracks.blogspot.com/2008/11/detection.html
Read also here:
http://www.learn-cocos2d.com/2010/05/ignore-everything-youve-heard-about-app-store-piracy/
source to share
There are ways to determine if your app is jailbroken or if your app has changed (aka cracked). Take a look here and here for example.
From my point of view, everything you get with these methods is a waste of time. Maybe you can make it harder for potential crackers and avoid babysitting babies. But you won't get so far that no talented cracker on earth can crack your app. Even one hacker on earth capable and motivating to hack your application is enough to load it on hundreds of sites.
If really big companies fail at securing their applications, I really doubt you will achieve this ... so: wasted time better spent improving your application.
source to share