可自行选择输入模式textField
应用介绍
定制的Alertview,不用写代理不用实例化,包含输入框的模式,输入框可自行选择输入模式,包含订制textField。 [ZPAlertView showAlertTitle:@"编辑短信内容" andMsg:@"编辑短信内容" cancelButtonTitle:@"取消" otherButtonTitles:@"确定" andBlock:^(NSInteger index,id contxt){ if (index == 1) {///确定的tag 值 ///做你想做的事 } }]; ZPTextField *textField = [[ZPTextField alloc] initWithFrame:CGRectMake(50, 50, 200, 50)]; textField.NBregEx = REGEX_POWER_TELPHOONE_NUMBER; [self.view addSubview:textField]; 请把代码粘贴在这里 //展示 ADlertView + (ZPAlertView *) showAlertTitle:(NSString*)title andMsg:(NSString*)msg cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles andBlock:(AlertViewBlock)block{ if (!_sharedADlertView) { _sharedADlertView = [[ZPAlertView alloc] initWith:title andMsg:msg cancelButtonTitle:cancelButtonTitle otherButtonTitles:otherButtonTitles andBlock:block]; } else{ [_sharedADlertView showAlertView:title andMsg:msg cancelButtonTitle:cancelButtonTitle otherButtonTitles:otherButtonTitles andBlock:block]; } return _sharedADlertView; }

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 可自行选择输入模式textField
发表评论 取消回复