Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. - (void)viewDidLoad {
  2. [super viewDidLoad];
  3.  
  4. // Jailbreak Detection
  5.  
  6. NSString *cydiaFilePath = @"/Applications/Cydia.app";
  7.  
  8. if ([[NSFileManager defaultManager] fileExistsAtPath:cydiaFilePath])
  9. {
  10. // insert jailbreak code here...
  11.  
  12. UIAlertView *jailbreakDetection = [[UIAlertView alloc]
  13. initWithTitle:@"Jailbreak Detected"
  14. message:@"This application will not run while a jailbreak is installed."
  15. delegate:nil
  16. cancelButtonTitle:nil
  17. otherButtonTitles:nil];
  18.  
  19. [jailbreakDetection show];
  20. } }
  21.  
  22. UIAlertView *jailbreakDetection = [[UIAlertView alloc]
  23. initWithTitle:@"Jailbreak Detected"
  24. message:@"This application will not run while a jailbreak is installed."
  25. delegate:nil
  26. cancelButtonTitle:@"Close"
  27. otherButtonTitles:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement