iOS布局自动排版 HUAutoLayout
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/huxiaoluder/HUAutoLayout
- 软件文档: https://github.com/huxiaoluder/HUAutoLayout
- 官方下载: https://github.com/huxiaoluder/HUAutoLayout/archive/master.zip
软件介绍
HUAutoLayout
根据给定的数据量,进行自动排版.
使用方法
实例化布局对象
HUAutoLayout *layout = [HUAutoLayout sharedLayout];
为布局对象赋值
NSUInteger culomn; //!< 属性描述: 列数 NSUInteger line; //!< 属性描述: 行数 UIEdgeInsets contentInset; //! <属性描述: 内边距 CGFloat minimumInteritemSpacing; //!< 属性描述: 列间距 CGFloat minimumLineSpacing; //!< 属性描述: 行间距 CGSize itemSize; //!< 属性描述: 尺寸
九宫格自动布局
- (void) hu_layoutSquare:(UIView *)targetView layoutCount:(NSInteger)count layoutType:(HUAutoLayoutSquareType)type handleBlock:(HUAutoLayoutHandleBlock)handleBlock;
垂直方向上流水布局 必须设定 itemHeight, culomn 和 itemWidth 至少一个需给定数据.
水平方向上流水布局 必须设定 itemWidth, line 和 itemHeight 至少一个需给定数据.
限定范围内固定布局 line, culomn, itemWidth, itemHeight 至少一个需给定数据.
瀑布流自动布局
必须先需要设置代理 waterfallDelegate.
- (void) hu_layoutWaterfall:(UIView *)targetView layoutCount:(NSInteger)count layoutType:(HUAutoLayoutWaterfallType)type handleBlock:(HUAutoLayoutHandleBlock)handleBlock;
垂直方向上流水布局 culomn 和 itemWidth 至少设置一个. 需实现代理方法:
- (CGFloat)layoutForItemHeight:(CGFloat)itemWith index:(NSUInteger)index;
水平方向上流水布局 line 和 itemHeight 至少一个需给定数据. 需实现代理方法:
- (CGFloat)layoutForItemWidth:(CGFloat)itemHeight index:(NSUInteger)index;
demo演示
本demo请用: 模拟器6和6s运行,其它屏幕未作适配.
//注释: demo中九宫格布局使用的是plist文件中的假数据,设置 布局数量 无用.
交流邮箱
huxiaoluder@163.com, 欢迎交流.
Java Web入门经典
王国辉、陈英 / 机械工业出版社 / 2013-6 / 69.00元
《Java Web入门经典》以初学者为核心,全面介绍了JavaWeb开发中常用的各种技术。内容排列上由浅入深,让读者循序渐进掌握编程技术;在内容讲解上结合丰富的图解和形象的比喻,帮助读者理解“晦涩难懂”的技术;在内容形式上附有大量的提示、技巧、说明等栏目,夯实读者编程技术,丰富编程经验。全书共分4篇19章,其中,第一篇为“起步篇”,主要包括开启JavaWeb之门、不可不知的客户端应用技术、驾驭Ja......一起来看看 《Java Web入门经典》 这本书的介绍吧!
