带输入框的UIAlertView

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
   
    UIAlertView *dialog = [[UIAlertView alloc] initWithTitle:@"请输入分组名称" message:@"\n" delegate:self cancelButtonTitle:@"添加" otherButtonTitles:@"取消",nil];
    [dialog setAlertViewStyle:UIAlertViewStylePlainTextInput];
    [[dialog textFieldAtIndex:0] setKeyboardType:UIKeyboardTypeNumberPad];
    [dialog show];

}

posted @ 2014-11-24 15:11  銱ル╬鎯噹  阅读(119)  评论(0编辑  收藏  举报