标签:
代码:
+(BOOL)isJailbroken { NSString *cydiaPath = @"/Applications/Cydia.app"; NSString *aptPath = @"/private/var/lib/apt/"; return [[NSFileManager defaultManager] fileExistsAtPath:cydiaPath] || [[NSFileManager defaultManager] fileExistsAtPath:aptPath]; }
其实就是判断那两个特殊的目录是否存在.
标签:
原文地址:http://www.cnblogs.com/agger0207/p/4472250.html