URBAlerViewDemo, listviewdemo
:
Engineering Drawing:
Note: This file must be added to the third master database URBAlertView.
RootViewController. m
// Click anywhere and a prompt box appears-(void) touchesBegan :( NSSet *) touches withEvent :( UIEvent *) event {URBAlertView * alertView = [URBAlertView dialogWithTitle: @ "Test diertview subtitle: @ "This is just a test dialog"]; alertView. blurBackground = NO; [alertView detail: @ "Close"]; [alertView addButtonWithTitle: @ "OK"]; [alertView setHandlerBlock: ^ (NSInteger buttonIndex, URBAlertView * alertView) {NSLog (@ "button tapped: index = % I", buttonIndex); [alertView hideWithCompletionBlock: ^ {}] ;}]; self. alertView = alertView; [self showDialogWithTumble];}-(void) showDialog {[self. alertView showWithAnimation: URBAlertAnimationDefault];}-(void) showDialogWithFade {[self. alertView showWithAnimation: URBAlertAnimationFade];}-(void) showDialogWithFlipHorizontal {[self. alertView showWithAnimation: URBAlertAnimationFlipHorizontal];}-(void) showDialogWithFlipVertical {[self. alertView showWithAnimation: URBAlertAnimationFlipVertical];}-(void) showDialogWithTumble {[self. alertView showWithAnimation: URBAlertAnimationTumble];}-(void) showDialogWithSlide {[self. alertView showWithAnimation: URBAlertAnimationSlideLeft];}
Source code: http://url.cn/Ua2ztY