求助,p52第一个Tweak

Tweak.xm中自己编写
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“Learn to iOS reverse” message:nil delegate:self cancelButtonTitle:“For Dream” otherButtonTitle:@“test”];
在编译的时候出现以下错误,
Compiling Tweak.xm…
Tweak.xm:6:47: error: instance method
‘-initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitle:’ not
found (return type defaults to ‘id’); did you mean
‘-initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:’?
[-Werror,-Wobjc-method-access]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Dream my D…
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:24:40: note:
receiver is instance of class declared here
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIAlertView : UIView
^
1 error generated.
make[2]: *** [obj/Tweak.xm.3ccc79cd.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [First_tweak.all.tweak.variables] Error 2
但是从网上copy如下代码,则能成功。
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“Welcome” message:@“Welcome to your iPhone Brandon!” delegate:self cancelButtonTitle:@“Thanks” otherButtonTitles:nil];
这是为何呢?

问题解决了,自己把最后一个参数写错了。