jun*_*i00 1 objective-c tweak cydia theos
我正在使用IOSOpenDev对Xcode进行cydia调整,我试图导入<AppKit/AppKit.h>但是我收到了这个错误!
'AppKit/AppKit.h' file not found'
这是我的代码,当有人试图截图时,它会改变闪光颜色
#include <AppKit/AppKit.h>
%hook SBScreenFlash
-(void)flashColor:(id)color {
NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.junyi00.screenshotcolor.plist"];
if ([[prefs objectForKey:@"enable"] boolValue]){
color = [NSColor blueColor];
%orig(color); }
else {
%orig; }
}
%end
Run Code Online (Sandbox Code Playgroud)
我调查了opt/IOSOpenDev/include,opt/theos/include并且无法找到AppKit.h
我如何解决这个问题?请帮忙
| 归档时间: |
|
| 查看次数: |
8048 次 |
| 最近记录: |