自定义UIAlertView可以容纳多个按钮
来源:互联网 发布:淘宝店宝贝描述 编辑:程序博客网 时间:2024/04/26 03:23
下载:FSAlertView
Customization UIView replace UIAlertView can include a lot of Buttons,the FSAlertView would be placed between Top Bar and Bottom Bar and automatically scroll well.
Features
- Works like UIAlertView.So does the Init,Delegate.
- Runs on iOS5,6,7,8.
- Non-ARC.
What you need
- FSAlertView.h
- FSAlertView.m
How to use
- (void)more{ FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"button 1",@"button 2",@"button 3" ,@"button 4",@"button 5",@"button 6" ,@"button 7",@"button 8",@"button 9",@"button 10", nil]; [moreAlert showInView]; [moreAlert release];}#pragma mark -#pragma mark -FSAlertViewDelegate- (void)fsAlertView:(UIView*)fsAlertView clickedButtonAtIndex:(NSInteger)buttonIndex {}
No Title
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:nil message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"button 1",@"button 2",@"button 3" ,@"button 4",@"button 5",@"button 6" ,@"button 7",@"button 8",@"button 9",@"button 10", nil];
No Message
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:nil delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"button 1",@"button 2",@"button 3" ,@"button 4",@"button 5",@"button 6" ,@"button 7",@"button 8",@"button 9",@"button 10", nil];
No Cancel
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:nil otherButtonTitles:@"button 1",@"button 2",@"button 3", nil];
No Button
If cancelButtonTitle and otherButtonTitles both be nil,the FSAlertView would be disappear after 3 seconds.
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
Only Button
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:nil message:nil delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"button 1",@"button 2",@"button 3" ,@"button 4",@"button 5",@"button 6" ,@"button 7",@"button 8",@"button 9",@"button 10", nil];
Has Two Button
FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"button 1", nil]; // or FSAlertView *moreAlert = [[FSAlertView alloc] initWithTitle:@"title" message:@"the FSAlertView message: please click the buttons" delegate:self cancelButtonTitle:nil otherButtonTitles:@"button 1",@"button 2", nil];
0 0
- 自定义UIAlertView可以容纳多个按钮
- 自定义ios UIAlertView, 重排按钮位置
- 2位可以容纳4个可能的值
- 多个UIAlertView的使用
- 多个UIAlertView的使用
- 【IOS】自定义UIAlertView样式,实现可替换背景和按钮
- 自定义UIAlertView样式,实现可替换背景和按钮
- 【IOS】自定义UIAlertView样式,实现可替换背景和按钮
- 自定义UIAlertView样式,实现可替换背景和按钮
- 【IOS】自定义UIAlertView样式,实现可替换背景和按钮
- 【IOS】自定义UIAlertView样式,实现可替换背景和按钮
- 自定义UIAlertView样式,实现可替换背景和按钮
- IOS自定义UIAlertView样式,实现可替换背景和按钮
- 自定义UIAlertView样式,实现可替换背景和按钮
- IOS自定义UIAlertView样式,实现可替换背景和按钮
- 【IOS】自定义UIAlertView样式,实现可替换背景和按钮
- 自定义导航右边多个按钮
- 含有多个按钮的自定义控件
- NSThread,NSInvocationOperation,NSBlockOperation,GCD解析
- MAC系统txt中文乱码解决办法~~~
- 模板的写法,写一个titleBar
- Tree
- 三层交换机连接路由器
- 自定义UIAlertView可以容纳多个按钮
- 架构师---名称介绍
- C/C++指针常量和常量指针
- Comet HTTP服务器推送框架之icomet
- Android控制自身应用设置实现多语言
- BZOJ 1191 超级英雄hero(二分图匹配,匈牙利算法)
- MySQL字符编码:如何从utf8升级到utf8mb4
- 关于远程调用实现的必要技术
- Java 加解密技术系列之 MD5