一个简单的类似于系统UIAlerView
查看次数:2367
下载次数:332
上传时间:2016-09-08
大小:35 B
无聊的时候写的一个类似于系统的alertview,有个小小的动画,只有取消和确定键,代码只供参考,不建议项目使用
使用方法
XCJAlert *popView = [[XCJAlert alloc]initWithFrame:self.view.bounds withTitle:@"我是杨施" withContent:
@"杨施你好!
杨施再见!"];
[self.view addSubview:popView];
[popView click:^(ButtonClickType type) {
if (type == ButtonClickCancel) {
NSLog(@"fuck");
}
if (type == ButtonClickConfirm) {
NSLog(@"fdfdf");
}
}];
收藏