Three Common IOS bullet boxes and three ios bullet boxes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.