Learn iOS Development UI Chapter--uialertview/uiactionsheet

Source: Internet
Author: User

Uialertview,uiactionsheet is the system's bullet box.

Uialertview: Creating a method

-(ID) Initwithtitle: (NSString *) title message: (NSString *) message delegate: (ID/*<uialertviewdelegate>*/) Delegate Cancelbuttontitle: (NSString *) cancelbuttontitle otherbuttontitles: (NSString *) Otherbuttontitles, ...

-(void) show;

Uialertview: Proxy method

-(void) Alertview: (Uialertview *) Alertview Clickedbuttonatindex: (Nsinteger) Buttonindex;

Called when we cancel a view (eg the user clicks the Home button). This isn't called when the user clicks the Cancel button.

If not defined in the delegate, we simulate a click in the Cancel button

-(void) Alertviewcancel: (Uialertview *) Alertview;

-(void) Willpresentalertview: (Uialertview *) Alertview; Before animation and showing view

-(void) Didpresentalertview: (Uialertview *) Alertview; After animation

-(void) Alertview: (Uialertview *) Alertview Willdismisswithbuttonindex: (Nsinteger) Buttonindex; Before animation and hiding view

-(void) Alertview: (Uialertview *) Alertview Diddismisswithbuttonindex: (Nsinteger) Buttonindex; After animation

Called after edits in all of the default fields added by the style

-(BOOL) Alertviewshouldenablefirstotherbutton: (Uialertview *) Alertview;

Uiactionsheet: Using

-(ID) Initwithtitle: (NSString *) title delegate: (id<uiactionsheetdelegate>) Delegate Cancelbuttontitle: ( NSString *) Cancelbuttontitle destructivebuttontitle: (NSString *) destructivebuttontitle otherButtonTitles: (NSString *)....

-(void) Showinview: (UIView *) view;

  Uiactionsheet: Proxy method

-(void) Actionsheet: (Uiactionsheet *) Actionsheet Clickedbuttonatindex: (Nsinteger) Buttonindex;

Called when we cancel a view (eg the user clicks the Home button). This isn't called when the user clicks the Cancel button.

If not defined in the delegate, we simulate a click in the Cancel button

-(void) Actionsheetcancel: (Uiactionsheet *) Actionsheet;

-(void) Willpresentactionsheet: (Uiactionsheet *) Actionsheet; Before animation and showing view

-(void) Didpresentactionsheet: (Uiactionsheet *) Actionsheet; After animation

-(void) Actionsheet: (Uiactionsheet *) Actionsheet Willdismisswithbuttonindex: (Nsinteger) Buttonindex; Before animation and hiding view

-(void) Actionsheet: (Uiactionsheet *) Actionsheet Diddismisswithbuttonindex: (Nsinteger) Buttonindex; After animation

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.