- 授权协议: MIT
- 开发语言: Swift
- 操作系统: 跨平台
- 软件首页: https://github.com/LinXunFeng/LXFProtocolTool
- 软件文档: https://github.com/LinXunFeng/LXFProtocolTool/blob/master/README.md
- 官方下载: https://github.com/LinXunFeng/LXFProtocolTool/archive/master.zip
软件介绍
LXFProtocolTool
通过协议的方式来方便快捷地实现一些的实用功能,目前功能不多,往后会逐渐增加,喜欢的来个Star吧 : )
对Swift协议不熟悉的同学可以阅读以下两篇文章做下了解:
Update
| 版本 | 更新内容 |
|---|---|
| 0.1.0 | * xib便捷加载 * scrollView空白页显示(依赖DZNEmptyDataSet) |
CocoaPods
LXFProtocolTool 支持CocoaPods:
完全安装
pod 'LXFProtocolTool'
当然,也可以根据自己的需要安装指定子库
Xib加载
pod 'LXFProtocolTool/LXFNibloadable'
空白视图
pod 'LXFProtocolTool/LXFEmptyDataSetable'
Example
详细使用请打开Example工程查看,以下做简要使用说明
LXFNibloadable
1、View遵守协议LXFNibloadable
class LXFXibTestView: UIView, LXFNibloadable {
}2、通过静态方法loadFromNib()创建View
let view = LXFXibTestView.loadFromNib()
LXFEmptyDataSetable
1、UIViewControllor或UIView遵守协议LXFEmptyDataSetable
extension LXFEmptyDemoController: LXFEmptyDataSetable {
}2、调用方法lxf_EmptyDataSet()
// 简单方式
lxf_EmptyDataSet(tableView)
// 定制方式
lxf_EmptyDataSet(tableView) { () -> ([LXFEmptyDataSetAttributeKeyType : Any]) in
return [
.tipStr:"哟哟哟",
.verticalOffset:-150,
.allowScroll: false
]
}**占位图可以使用定制方式的.tipImage来指定,也可以丢指定名字LXFEmptyDataPic的图片到工程的Images.xcassets中 **
License
LXFProtocolTool is available under the MIT license. See the LICENSE file for more info.
Author
LinXunFeng
email: 598600855@qq.com
Transcending CSS
Andy Clarke、Molly E. Holzschlag / New Riders / November 15, 2006 / $49.99
As the Web evolves to incorporate new standards and the latest browsers offer new possibilities for creative design, the art of creating Web sites is also changing. Few Web designers are experienced p......一起来看看 《Transcending CSS》 这本书的介绍吧!

