我有一个UIAlertView
与此代码,请你率在AppStore应用程序显示。UIAlertView按钮操作?
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Rate on the Appstore!"
message:@""
delegate:self
cancelButtonTitle:@"Later"
otherButtonTitles:@"OK", nil];
[alert show];
[alert release];
但我无法弄清楚如何将动作添加到OK按钮,带您在AppStore中的应用。
请更改方法名clickedButtonAtIndex ... 。有可能有人可能会复制上面提到的同一个方法名称,并且该方法永远不会被调用。 – 2012-06-13 15:19:53
只需要在ViewController.h中,在@interface ViewController:UIViewController之后添加:它看起来像这样:“@interface ViewController:UIViewController ” –
JomanJi
2013-01-19 09:42:47
那么我在哪里调用此方法? 是怎么回事它自己被调用,因为我们在头文件中添加的UIViewController,或者我们需要做这样的事情[自alertView ...]地方吗? –
SteBra
2013-11-21 10:41:52