在研究iOS 9中可用的PrivateFrameworks期间,我找到了有趣的library,可以访问越狱iPhone的通话记录。问题是如何使用这个框架?
我的简要例子:
NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/CallHistory.framework"];
BOOL success = [b load];
if (success) {
Class CallHistoryDBHandle = NSClassFromString(@"CallHistoryDBClientHandle");
SEL theSelector = NSSelectorFromString(@"fetchAllNoLimit");
id si = [CallHistoryDBHandle valueForKey:@"createForClient"];
NSLog(@"-- %@", [si performSelector:theSelector]);
} else {
NSLog(@"NO");
}