UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"An Alert!"
delegate:self cancelButtonTitle:@"OK" otherButtonTitles:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301349397&mt=8"]];];
[alert show];
[alert release];
我试图显示一个“确定”按钮和一个“购买完整版”按钮的UIAlertView。我怎样才能使上面的代码工作?UIAlert查看目标C - 打开应用商店链接
感谢
该方法需要按钮标题,而不是任意代码。 – Eiko 2010-12-12 14:58:49