我正在尝试在我的设备上使用theos创建我的第一个移动基质调整但是当我编译我得到这个错误
我Tweak.xm调整。xm:23:1: error: control may reach end of non-void function [-Werror,- return-type]
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
static NSMutableDictionary *plist = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.myplist.customwapprefs.plist"];
static BOOL pictureFit = NO;
static id connection = nil;
%hook WAPhotoMoveAndScaleViewController
- (BOOL)mustScaleToFill {
pictureFit = [[plist objectForKey:@"photofit"]boolValue];
if (pictureFit) {
return NO;
}
else if (!pictureFit) {
return %orig;
}
}
%end
请具体一点,我是新来的objective-c和所有这些,谢谢
if (pictureFit) {
return NO;
}
else if (!pictureFit) {
return %orig;
}
您不需要else
部分中的第二个条件。删除它,编译器应该高兴