UIAlertView 多个输入框的使用
2016-06-21 10:50
555 查看
转自:http://www.lxway.com/4421915526.htm; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"请输入口令" message:@"" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定",nil]; [alert setAlertViewStyle:UIAlertViewStyleSecureTextInput]; [alert show];
其中,只需要设置AlertViewStyle风格即可显示出不同风格弹出框:
UIAlertViewStylePlainTextInput | 添加一个普通输入框 |
UIAlertViewStyleSecureTextInput | 密码输入框 |
UIAlertViewStyleLoginAndPasswordInput | 普通输入框加密码输入框 |
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { UITextField *txt = [alertView textFieldAtIndex:0]; }
相关文章推荐
- 多线程编程(三)NSOperationQueue
- 1.UNIX环境高级编程学习环境搭建---apue.h,unix---apue.h
- 5款高效的原型设计工具
- java.net.BindException: Cannot assign requested address: JVM_Bind
- Qt quick实现无边框可拖拽风格
- easyui的自定义行工具栏
- UI控件之RadioButton(单选按钮)&Checkbox(复选按钮)
- iOS 设置UITextView显示文本的光标
- UItableViewCell的分割线顶头显示
- NGUI 拓展Poplist 插件
- ios UISegmentedControl的使用简介
- UIImagePickerController简单使用
- UUID的意义和作用
- private static final long serialVersionUID = 1L
- UIView中的坐标转换
- UIButton的详细使用
- iOS实战演练之Unknown type name 'UIColor" 的问题
- UIViewController的edgesForExtendedLayout属性
- iOS中长按调出菜单组件UIMenuController的使用实例
- [置顶] Java并发编程与技术内幕:ArrayBlockingQueue、LinkedBlockingQueue及SynchronousQueue源码解析