我创建了UIalertview,添加了两个按钮。
现在需要添加多一个按钮在alert view中。
如何编辑我的代码进行添加一个新按钮。
我的代码如下: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Refresh" message:@"Are you want to Refresh Data" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
[alert show];
[alert release];
复制代码有哪位大神能够帮助我?
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Refresh" message:@"Are you want to Refresh Data" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"one", @"two",@"three"nil];
[alert setNumberOfRows:3];
[alert show];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Refresh" message:@"Are you want to Refresh Data" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK",@"BB",@"ddd",nil];
[alert show];
[alert release];
other里面直接加
下面的代码或许能够帮助你: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Refresh" message:@"Are you want to Refresh Data" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", @"Done", nil];
[alert show];
[alert release];
复制代码
阅读(221) | 评论(0) | 转发(0) |