Skip to content

WilliamAlex/WGAlertViews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WGAlertViews

调用方式:

    NSString* title=@"登陆成功",*msg=@"登陆成功了啦", *fixed=@"确定啦" , *cancel=@"取消吧";;
    WGAlertView *alertView= [WGAlertView wgAlertViewWithTitle:title message:msg type:WGAlertCustom mode:WGAlertShowTypeFade fixedTitle:fixed cancleTitle:cancel];
    alertView.headImage = [UIImage imageNamed:@"head1.jpeg"];
    
 //  点击事件
    self.alertView.fixedClick = ^(WGAlertView *av) {
    
        WGLog(@"sure clicked");
    };
    self.alertView.cancleClick=^(WGAlertView* av){
        WGLog(@"cancel clicked");
    };
    self.alertView.backgroundClick=^(WGAlertView* av){
        WGLog(@"bg clicked");
    };

    // 生命周期
//    self.alertView.willAppear=^(WGAlertView* av){
//        WGLog(@"willAppear");
//    };
//    self.alertView.didAppear=^(WGAlertView* av){
//        WGLog(@"didAppear");
//    };
//    self.alertView.willDisappear=^(WGAlertView* av){
//        WGLog(@"willDisappear");
//    };
//    self.alertView.didDisappear=^(WGAlertView* av){
//        
//        WGLog(@"didDisappear");
//    };
    [self.alertView show];

About

自定义弹框

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published