Matte HUD Indicator Mask pop-up window

Source: Internet
Author: User

Mask HUD Indicator Mask popup Uialertview Use < Agent method Handle button click >
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"警告" message:@"是否要删除它?" delegate:self cancelButtonTitle:@"是" otherButtonTitles:@"否", nil];//加登录框 alertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput; [alertView show];

Uiactionsheet Use < Agent method Handle button click >
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"警告:确定要删除它?" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:@"随便", nil]; [sheet showInView:self.view];

Use of Uialertcontroller: Uialertcontrollerstyleactionsheet
Uialertcontroller *alertcontroller = [Uialertcontroller alertcontrollerwithtitle:@ "WARNING" message:@ "OK to delete it?" [Preferredstyle:uialertcontrollerstyleactionsheet];Add button <UIAlertActionStyleDestructive> uialertaction *sure = [uialertaction actionwithtitle:@ "OK" style:uialertactionstyledestructive handler:^ (uialertaction *action) {NSLog (@ "Click on" OK "button"); }]; [Alertcontroller Addaction:sure]; [Alertcontroller addaction:[uialertaction Actionwithtitle:@ "Casual 1" style:uialertactionstyledefault handler:^ (uialertaction *action) { NSLog (@ "clicked on" 1 "button");}]; [Alertcontroller addaction:[uialertaction Actionwithtitle:@ "Casual 2" Style:uialertactionstyledefault handler:^ ( Uialertaction *action) { NSLog (@ "clicked on" 2 "button");}]; [Alertcontroller addaction:[uialertaction Actionwithtitle:@ "Cancel" Style:uialertactionstylecancel handler:^ ( Uialertaction *action) { NSLog (@ "clicked" Cancel "button");}]; //Eject another controller on the current controller: Alertcontroller display [selfpresentviewcontroller:alertcontroller animated:YES Completion:nil];            

Use of Uialertcontroller:uialertcontrollerstylealert< >
Uialertcontroller *alertcontroller = [Uialertcontroller alertcontrollerwithtitle:@ "WARNING" message:@ "message: OK? [Preferredstyle:uialertcontrollerstylealert];Add button uialertaction *sure = [uialertaction actionwithtitle:@ "OK" style:uialertactionstyledestructive handler:^ (uialertaction *action) {NSLog (@ "Click on" OK "button"); }]; [Alertcontroller Addaction:sure]; [Alertcontroller addaction:[uialertaction Actionwithtitle:@ "Cancel" style:uialertactionstylecancel handler:^ (uialertaction *action) {NSLog (@ "Click" Cancel "button"); }]]; [Alertcontroller addaction:[uialertaction Actionwithtitle:@ "button" Style:uialertactionstyledefault handler:^ (uialertaction *action) { NSLog (@ "clicked" button "button");}]]; //You can also add a text box [Alertcontroller addtextfieldwithconfigurationhandler:^ (Uitextfield *textfield) {TextField. TextColor = [uicolor redcolor]; TextField. securetextentry = YES; //Dark text TextField. placeholder = @ "Please enter password";}]; //Eject another controller on the current controller: Alertcontroller [selfpresentviewcontroller:alertcontroller animated:YES Completion:nil];              

Use of Uialertcontroller:uialertcontrollerstylealert< two >
Uialertcontroller *alertcontroller = [Uialertcontroller alertcontrollerwithtitle:@ "Warning" message:@ "message: OK?    [Preferredstyle:uialertcontrollerstylealert]; //Add button uialertaction *sure = [uialertaction actionwithtitle:@ " OK "style:uialertactionstyledestructive handler:^ (uialertaction *action) {NSLog (@ "click on" OK "button"); }]; [Alertcontroller Addaction:sure]; [Alertcontroller addaction:[uialertaction actionwithtitle:@ "Cancel" style: Uialertactionstylecancel handler:^ (uialertaction *action) {NSLog ( @ "clicked" Cancel "button"); }]]; //eject another controller on the current controller: Alertcontroller [self Presentviewcontroller:alertcontroller animated:yes completion: nil];             

Introduction Frame < one > Svprogresshud
The following messages need to be actively called dismiss methods to hide [Svprogresshud show]; [Svprogresshud Showwithmasktype:svprogresshudmasktypeblack];Add Gray Mask [Svprogresshud showwithstatus:@ "Loading in ..."];Add reminder text below//Delay after 2 seconds Dispatch_after (Dispatch_time (Dispatch_time_now, (int64_t) (2.0 * nsec_per_sec)), dispatch_get_ Main_queue (), ^{[Svprogresshud dismiss];}); ///The following messages will automatically disappear //[Svprogresshud showinfowithstatus:@] data is loaded! "]; //[Svprogresshud showsuccesswithstatus:@ ' successfully loaded into 4 new data!] "]; //[Svprogresshud showerrorwithstatus:@] Network error, please wait! "]; //Delay after 2 seconds to do something //Dispatch_after (Dispatch_time (Dispatch_time_now, (int64_t) (2.0 * nsec_per_sec)), Dispatch_get _main_queue (), ^{//[Svprogresshud dismiss];  // }); //[Svprogresshud showprogress:progress status:[nsstring stringwithformat:@ "Downloaded%.0f%%", progress *]];  
Another frame Mbprogresshud

Matte HUD Indicator Mask Popup

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.