Three Common IOS bullet boxes and three ios bullet boxes
So far, three types of IOS pop-up boxes have been known: 1. System pop-up box-bottom pop-up box UIActionSheet (1) usage: handling users' very dangerous operations, such as canceling the system (2) example: UIActionSheet * sheet = [[UIActionSheet alloc] initWithTitle: @ "are you sure you want to log out? "Delegate: self cancelButtonTitle: @" cancel "destructiveButtonTitle: @" OK "otherButtonTitles: nil, nil];
[Sheet showInView: self. view]; (3) effect 2. System pop-up box-middle pop-up box (1) usage: handle general notifications. If not necessary, try not to use them, affecting friendliness. (2) Example: UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "warning" message: @ "incorrect account or password" delegate: nil cancelButtonTitle: @ "OK" otherButtonTitles: nil, nil];
[Alert show]; (3) effect: On the logon page, enter the account and password. If an error is entered, a prompt is displayed, you must click "OK" to re-enter 3. Three-party framework MBProgressHuD bullet box-intermediate bullet box (1) usage: You need to introduce this framework file. On this basis, a category is written, header file "MBprogressHUD + MJ. h. Other files that require method calling include this header file. The advantage is that it only prompts 1 second and then disappears quickly without the user clicking. Relatively friendly. (2) Example: [MBProgressHUD showError: @ "Incorrect password"];
[MBProgressHUD showMessage: @ "login..."]; (3) effect: popup mbprogresshud.zip Baidu Network Disk address: Link: http://pan.baidu.com/s/1pJJXymZ password: 5euj