iOS 模态弹窗 ZZCustomAlertView
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/zzdjk6/ZZCustomAlertView
- 软件文档: http://cocoadocs.org/docsets/ZZCustomAlertView/0.1.0/Classes/ZZCustomAlertView.html
软件介绍
ZZCustomAlertView 是一个可以高度自定义的 iOS 模态弹窗 (modal alert view)。
项目地址:https://github.com/zzdjk6/ZZCustomAlertView
Github 项目里包含一个 Example 的 Demo 示例。
使用 Cocoapod:
pod "ZZCustomAlertView"
这里是 Demo 效果视频:http://v.youku.com/v_show/id_XMTI3NDQyODk3Mg==.html
简明用法
总的来说,你可以将完全自定义的一个 View 作为 ZZCustomAlertView 的 contentView,并可以设置阴影的颜色、透明度、是否模糊背景、是否允许点击背景隐藏弹窗等参数。
如下代码将创建在 Demo 中看到的默认弹窗。
ZZCustomAlertView *alert = [ZZCustomAlertView alertViewWithParentView:self.view andContentView:nil];
[alert show];
如下代码将创建在 Demo 中看到的自定义弹窗。
UIImage *img = [UIImage imageNamed:@"Perfect Button"];UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
btn.frame = CGRectMake(0, 0, img.size.width, img.size.height);
[btn setImage:img forState:UIControlStateNormal];
[btn addTarget:self action:@selector(customButtonPressed) forControlEvents:UIControlEventTouchUpInside];
ZZCustomAlertView *alert = [ZZCustomAlertView alertViewWithParentView:self.view andContentView:btn];
alert.shouldBlurBackground = YES;
alert.allowTapBackgroundToDismiss = NO;
alert.shadowColor = [UIColor whiteColor];
alert.shadowAlpha = 0.1f;
[alert show];
更多详情请访问 Github 项目地址:https://github.com/zzdjk6/ZZCustomAlertView
博客秘诀:超人气博客是怎样炼成的
Darren Rowse、Chris Garrett / 向怡宁 / 人民邮电出版社 / 201005 / 39.00元
作为Web 2.0的新生事物的博客,如今已蓬勃发展,呈燎原之势,业已成为许多人的一种生活方式。中国从事博客写作的人数已达千万级,各类博客网站不可胜数。 然而,为什么有的博客人气鼎盛,拥趸众多,有的博客却门前冷落,少人问津呢?究竟应该怎样写好自己的博客,才能让它吸引更多访客的关注呢?博客网站还能为我做什么呢? 本书的两位作者长期主持知名博客站点ProBlogger.net,指导了成千上万......一起来看看 《博客秘诀:超人气博客是怎样炼成的》 这本书的介绍吧!
