我正在使用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我查看了opt/IOSOpenDev/include和opt/theos/include,但找不到AppKit.h
如何解决此问题?请帮帮忙
发布于 2013-02-12 18:56:51
AppKit是针对Mac的;对于iOS,您需要UIKit:
#import <UIKit/UIKit.h>https://stackoverflow.com/questions/14830853
复制相似问题