![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AlertView
tjkjdxlhj
这个作者很懒,什么都没留下…
展开
-
自定义AlertView实现模态对话框
在Windows应用程序中,经常使用模态(Model)对话框来和用户进行简单的交互,比如登录框。在IOS应用程序中,有时我们也希望做同样的事情。但IOS的UI库中,没有模态对话框,最接近那个样子的应该算是AlertView。但仅用AlertView,我们只能做文字提示,而不能和用户做交互。本文将介绍如何基于AlertView做定制,实现模态对话框的功能。以密码修改框为例:1.转载 2014-04-04 19:09:39 · 1124 阅读 · 0 评论 -
alertView中添加输入文本框
#pragma mark UIAlertView delegate- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if (buttonIndex == 0) { NSLog(@"取消"); }else if (buttonIndex == 1) { NSLog(@"确原创 2014-05-09 15:36:56 · 2788 阅读 · 0 评论