有时候你的某些代码部分不适合越狱玩家, 那就只能判断一下了
-(BOOL)isJailBreak{
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"cydia://"]]) {
NSLog(@"The device is jail broken!");
return YES;
}
NSLog(@"The device is NOT jail broken!");
return NO;
}
from:
http://www.th7.cn/Program/IOS/201403/183632.shtml