2

我正在使用 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/includeopt/theos/include无法找到AppKit.h
如何解决此问题?请帮忙

4

1 回答 1

12

AppKit 适用于 Mac;对于你想要 UIKit 的 iOS:

#import <UIKit/UIKit.h>
于 2013-02-12T10:56:50.573 回答