AlertView的show方法执行后,后面的代码会继续运行,而不会等待用户按键结束再走,这样,如果把弹出的代码写在一个BOOL函数里,没等用户确认直接返回NO就惨了,解决方法: 1 - (BOOL)beforeBackButtonClickEvent { 2 UIAlertView *al...
                            
                            
                                分类:
其他好文   时间:
2014-09-15 15:43:29   
                                阅读次数:
188
                             
                    
                        
                            
                            
                                AlertView的show方法执行后,后面的代码会继续运行,而不会等待用户按键结束再走,这样,如果把弹出的代码写在一个BOOL函数里,没等用户确认直接返回NO就惨了,解决方法:- (BOOL)beforeBackButtonClickEvent {UIAlertView *alert = [[UI...
                            
                            
                                分类:
其他好文   时间:
2014-09-15 15:29:59   
                                阅读次数:
203
                             
                    
                        
                            
                            
                                UIAlertView *alertView1 = [[UIAlertView alloc] initWithTitle:@"Enter Form Name" message:@"" ...
                            
                            
                                分类:
移动开发   时间:
2014-09-09 15:39:58   
                                阅读次数:
148
                             
                    
                        
                            
                            
                                1.alertview创建UIAlertView *alert; alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"题库有更新,需要更新吗?" delegate:self cancelButtonTitle:@"确定"...
                            
                            
                                分类:
移动开发   时间:
2014-09-09 10:35:58   
                                阅读次数:
212
                             
                    
                        
                            
                            
                                如 AlertView,当 show 一个 Alert 时,它会覆盖在 Keyboard 上面,不影响显示的效果。那么我们自己创建的 View 如何像 Alert 那样不被键盘盖住呢?很简单,拿到 Application 的 最上面一个 window,把 View 加到这个 window 上,就可以...
                            
                            
                                分类:
移动开发   时间:
2014-08-26 13:25:46   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                /*alertView.h*/#import@interfacealertView:UIViewController{//创建控件对象UIAlertView*iToast;}@property(nonatomic,retain)UIAlertView*iToast;//让警告框消失的方法-(void...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 13:17:34   
                                阅读次数:
251
                             
                    
                        
                            
                            
                                UIAlertView使用
基本用法
// 创建一个UIAlertView并显示出来
UIAlertView *alertview = [[UIAlertView alloc] initWithTitle:aTitle message:msg delegate:nil cancelButtonTitle:str otherButtonTitles:nil];
[alertview show];...
                            
                            
                                分类:
其他好文   时间:
2014-08-11 10:07:51   
                                阅读次数:
202
                             
                    
                        
                            
                            
                                UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(5, self.alertView.lableView.frame.size.height + self.checkBox.fra...
                            
                            
                                分类:
其他好文   时间:
2014-08-08 11:55:15   
                                阅读次数:
246
                             
                    
                        
                            
                            
                                在Windows应用程序中,经常使用模态(Model)对话框来和用户进行简单的交互,比如登录框。在IOS应用程序中,有时我们也希望做同样的事情。但IOS的UI库中,没有模态对话框,最接近那个样子的应该算是AlertView。但仅用AlertView,我们只能做文字提示,而不能和用户做交互。本文将介绍...
                            
                            
                                分类:
其他好文   时间:
2014-07-17 18:26:05   
                                阅读次数:
190
                             
                    
                        
                            
                            
                                贴一段我很久以前写的小demo,你们就明白了,是把textField套在alertView里的@interface ViewController : UIViewController { UILabel *la; UITextField *myTextField;}@implementa...
                            
                            
                                分类:
移动开发   时间:
2014-07-16 21:26:11   
                                阅读次数:
282