Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Jailbreak Detection
- NSString *cydiaFilePath = @"/Applications/Cydia.app";
- if ([[NSFileManager defaultManager] fileExistsAtPath:cydiaFilePath])
- {
- // insert jailbreak code here...
- UIAlertView *jailbreakDetection = [[UIAlertView alloc]
- initWithTitle:@"Jailbreak Detected"
- message:@"This application will not run while a jailbreak is installed."
- delegate:nil
- cancelButtonTitle:nil
- otherButtonTitles:nil];
- [jailbreakDetection show];
- } }
- UIAlertView *jailbreakDetection = [[UIAlertView alloc]
- initWithTitle:@"Jailbreak Detected"
- message:@"This application will not run while a jailbreak is installed."
- delegate:nil
- cancelButtonTitle:@"Close"
- otherButtonTitles:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement