在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:AlertView开源软件地址:https://gitee.com/roycms/AlertView开源软件介绍:RAlertView ios弹窗AlertView 是一个ios弹窗框架,可以很简单的集成到自己的项目内,支持pod. 动画预览安装
cocoapods 安装
弹窗类型 AlertStyletypedef NS_ENUM(NSInteger,AlertStyle) { SimpleAlert = 0, ConfirmAlert, CancelAndConfirmAlert,}; 弹窗主题效果 AlertTheme RAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert]; alert.theme =[UIColor redColor]; 一些属性设置
alert.isClickBackgroundCloseWindow = YES;
alert.contentTextLabel.text =@"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project";alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5]; 初始化弹窗 RAlertView
RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];
RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8]; SimpleAlertRAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8];alert.isClickBackgroundCloseWindow = YES;alert.contentTextLabel.text =@"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project"; ConfirmAlertRAlertView *alert = [[RAlertView alloc] initWithStyle:ConfirmAlert];alert.headerTitleLabel.text = @"ConfirmAlert";alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5];[alert.confirmButton setTitle:@"Ok" forState:UIControlStateNormal];alert.confirm = ^(){ NSLog(@"Click on the Ok"); }; CancelAndConfirmAlertRAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert];alert.headerTitleLabel.text = @"CancelAndConfirmAlert";alert.contentTextLabel.attributedText = [TextHelper attributedStringForString:@"AlertView A pop-up framework, Can be simple and convenient to join your project" lineSpacing:5];;[alert.confirmButton setTitle:@"Ok" forState:UIControlStateNormal];[alert.cancelButton setTitle:@"Cancel" forState:UIControlStateNormal];alert.confirm = ^(){ NSLog(@"Click on the Ok"); };alert.cancel = ^(){ NSLog(@"Click on the Cancel"); }; 期待
排版规范参考 https://github.com/sparanoid/chinese-copywriting-guidelines |
请发表评论