それが私のコードです...エラーがあります...手伝ってくれませんか?
@interface PdfViewerAppDelegate : UIViewController
@property(assign) BOOL myVariable;
-(void)setup;
@end
%hook PdfViewerAppDelegate
-(void)setup{
%orig;
myVariable=1;
}
%end
それはエラーです
Compiling Tweak.xm...
Tweak.xm: In function ‘void _logos_method$_ungrouped$PdfViewerAppDelegate$setup(PdfViewerAppDelegate*, objc_selector*)’:
Tweak.xm:15: error: ‘myVariable’ was not declared in this scope
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [GG.all.tweak.variables] Error 2