Masonry是一个轻量级的布局框架,拥有自己的描述语法,采用更优雅的链式语法封装自动布局,简洁明了并具有高可读性,而且同时支持 iOS 和 Max OS X。Masonry是一个用代码写iOS或OS界面的库,可以代替Auto layout。Masonry的github地址:https://gith...
分类:
移动开发 时间:
2015-12-05 19:17:36
阅读次数:
372
必备宏使用前提://define this constant if you want to use Masonry without the 'mas_' prefix#define MAS_SHORTHAND //define this constant if you want to enable ...
分类:
其他好文 时间:
2015-12-03 09:43:26
阅读次数:
130
1 // 2 // ViewController.m 3 // E01.Masonry基本使用 4 // 5 // Created by apple on 15/8/8. 6 // Copyright (c) 2015年 apple. All rights reserved. 7 // 8...
分类:
其他好文 时间:
2015-12-03 00:22:03
阅读次数:
230
Masonry 英文原档介绍:Masonry is still actively maintained, we are committed to fixing bugs and merging good quality PRs from the wider community. However if...
分类:
移动开发 时间:
2015-12-01 21:18:17
阅读次数:
329
Masonry介绍与使用实践:快速上手Autolayoutframe----->autoresing------->autoLayout-------->sizeClasses以上是纯手写代码所经历的关于页面布局的三个时期在iphone1-iphone3gs时代 window的size固定为(320...
分类:
移动开发 时间:
2015-12-01 14:51:03
阅读次数:
260
1:在动画[UIView beginAnimations:nil context:nil]之前一定要先执行: [self.itemView layoutIfNeeded];这样可以一开始确定好itemView在动画之前开始的位置,不然的话他会在左上角的座标:(0,0)开始2:[UIView comm...
分类:
其他好文 时间:
2015-12-01 00:03:37
阅读次数:
195
1. [基础] 居中显示一个view-(void)viewDidLoad{[superviewDidLoad];//Doanyadditionalsetupafterloadingtheview.WS(ws);UIView*sv=[UIViewnew];[svshowPlaceHolder];sv....
分类:
其他好文 时间:
2015-11-30 17:38:03
阅读次数:
158
内容大纲:1、纯代码 添加子控件2、Autolayout纯代码 -- Masonry框架的使用3、自定义等高的cell -- storyboard的使用(更加简单)4、静态cell等高的Cell自定义等高的cell纯代码frameAutolayout1、纯代码 添加子控件项目初始准备:1、将Stor...
分类:
移动开发 时间:
2015-11-28 16:24:55
阅读次数:
372
duplicate symbol _OBJC_CLASS_$_AutoTableViewViewController in: /Users/apple/Library/Developer/Xcode/DerivedData/masonry自动布局-cragjuqaxcsyhcckrysbcptlq....
分类:
其他好文 时间:
2015-11-27 19:44:24
阅读次数:
122
起因某日使用DKChainableAnimationKit的时候发现可以如下写代码:view.animation.rotate(180).anchorTopLeft.thenAfter(1.0).rotate(90).anchorCenter.animanimation无独有偶。Masonry其实也...
分类:
其他好文 时间:
2015-11-27 06:38:49
阅读次数:
133