alertView中添加输入文本框
来源:互联网 发布:破解linux系统root密码 编辑:程序博客网 时间:2024/05/22 04:46
UIAlertView * alerView = [[UIAlertViewalloc]initWithTitle:@"添加分组" message:nildelegate:selfcancelButtonTitle:@"取消"otherButtonTitles:@"添加",nil];
alerView.alertViewStyle =UIAlertViewStylePlainTextInput;
alerView.delegate = self;
UITextField * newGroup = [[UITextFieldalloc]initWithFrame:CGRectMake(0,0, 100,20)];
newGroup.tag = 1001;
[alerView addSubview:newGroup];
[alerView show];
#pragma mark UIAlertView delegate
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
NSLog(@"取消");
}else if (buttonIndex == 1)
{
NSLog(@"确定");
UITextField * textField = nil; textField = [alertView textFieldAtIndex:0]; newGroupName = textField.text;
}
}
- alertView中添加输入文本框
- iOS中AlertView添加输入框
- iOS中AlertView添加输入框
- iOS中AlertView添加输入框
- AlertView中添加UITextField
- ios alertView添加输入框
- 文本框中只能输入数字
- 在文本框中添加图片
- iReport文本框中添加判断
- 带输入框的AlertView
- AlertView 加文本输入框
- ios——带文本框的alertView
- WPF中禁止文本框中输入数字
- IOS AlertView动态添加按钮
- VB.NET中控制文本框的输入
- JS 文本框中只允许输入数字
- 如何禁止在文本框中输入中文
- 如何使文本框中只能输入数字
- 少走弯路的10条忠告
- windows-IOCP模型总结
- 客户端执行Sql的方法
- [乐意黎原创] PHP文件包含语句 include、include_once、require、require_once的区别
- POJ 1008 Maya Calendar
- alertView中添加输入文本框
- android中消费事件的概念以及使onClick和onLongClick同时发生
- 小翼的java俄罗斯方块----总结(3)
- mysql重装
- 348 南阳理工 暴力算法
- 于破解过招,保护你的共享软件
- ...
- linux下读取简单文本配置文件C程序
- 4.1-4.30推荐文章汇总