6.UIAlertView的基本使用
来源:互联网 发布:淘宝代销能赚到钱吗 编辑:程序博客网 时间:2024/06/11 07:04
1.输入文字的alertView
alertView 可以选择样式,有弹出让用户输入文字的样式以及怎么获得alertView上的UITextField:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"修改数据" message:nil delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
UITextField *textField = [alert textFieldAtIndex:0];
//textField.text =hero.name;
textField.placeholder=hero.name;
[alert show];通过代理拿到文字
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
UITextField *textField = [alertView textFieldAtIndex:0];
NSString *newStr = textField.text;
}
0 0
- 6.UIAlertView的基本使用
- UIAlertView 的基本使用方法
- UIAlertView的基本用法
- UIAlertView的基本用法
- UIAlertView的使用
- UIAlertView的使用
- UIAlertView的使用
- UIAlertView,UIActionSheet的使用
- UIAlertView的一些使用
- UIAlertView 的使用
- UIALertView的使用
- UIAlertView的使用
- UIAlertView的使用
- UIAlertView 的使用
- UIAlertView的使用
- UIAlertView的使用
- UIAlertView的使用介绍
- UIAlertView的快捷使用
- 怎么在Caffe中配置每一个层的结构
- jquery属性选择器使用事例
- sql表 强制解锁
- Android系统之路(初识MTK) ------ 内置三方apk到Rom可移动/可卸载
- hibernate乐观锁与悲观锁
- 6.UIAlertView的基本使用
- Spring 配置 druid连接池 c3p0连接池
- log4j2的进阶文档。主要写其中网上没什么资料,比较实用的几个地方。
- Placebo Effect(安慰剂效应)
- JAVA字符串转日期或日期转字符串
- PLSQL查询乱码
- sqlstate[hy000] [2002] No such file or directory in ...错误
- ng-option 的两种写法
- 5.1.4. List Comprehensions(列表解析)