SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NSString *filePath = @"/Applications/Cydia.app";
  2. if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){
  3.     Lable.text = @"You are jailbroken";
  4.     Button.enabled = YES;
  5. }
  6.    
  7. if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"cydia://"]]){
  8.      Lable.text = @"You are jailbroken";
  9.      Button.enabled = YES;
  10. }
  11.    
  12. NSString* filePath = [NSSearchPathForDirectoriesInDomains(NSApplicationDirectory, NSUserDomainMask, YES) stringByAppendingPathComponent: @"cydia.app"];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top