Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2604467
  • 博文数量: 877
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-05 12:25
个人简介

技术的乐趣在于分享,欢迎多多交流,多多沟通。

文章分类

全部博文(877)

文章存档

2021年(2)

2016年(20)

2015年(471)

2014年(358)

2013年(26)

分类: iOS平台

2015-08-18 11:21:28

我创建了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];
复制代码

阅读(197) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~