<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>autolayout - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/autolayout/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Fri, 03 Mar 2017 04:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>YYTextView与AutoLayout混用Demo</title>
		<link>https://www.coder4.com/archives/5368</link>
					<comments>https://www.coder4.com/archives/5368#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 04:34:47 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[YYTextView]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=5368</guid>

					<description><![CDATA[import UIKit import YYText import SnapKit class YYCell: UITableViewCell { fileprivate static let fontSize: CGFloat = 24 fileprivate static let font = UIFont.systemFont(ofSize: YYCell.fontSize) fileprivate lazy var wrapView: UI[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/5368/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SnapKit如果高度要稍后才能确定，如何设置才能保证不冲突</title>
		<link>https://www.coder4.com/archives/5365</link>
					<comments>https://www.coder4.com/archives/5365#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 04:01:14 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[high]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[priority]]></category>
		<category><![CDATA[snapkit]]></category>
		<category><![CDATA[优先级]]></category>
		<category><![CDATA[冲突]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=5365</guid>

					<description><![CDATA[代码如下： 注意priority high是关键 class YYCell: UITableViewCell { fileprivate var tvHeightConstraint: Constraint? = nil .... fileprivate func setupUI() { textView.snp.makeConstraints { (make) in make.top.equalToSupervi[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/5365/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>iOS使用Autolayout后，如何更新frame</title>
		<link>https://www.coder4.com/archives/5279</link>
					<comments>https://www.coder4.com/archives/5279#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 22 Jan 2017 05:56:05 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[更新]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=5279</guid>

					<description><![CDATA[答案：调用下layoutIfNeeded后，系统会触发更新，但不一定保证何时能更新。 如果要强制获得Autolayout的frame可以给UIView增加如下的Category方法： - (CGFloat)my_layoutHeight { return [self systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height; } - (CGFloat)my_layoutWidth { r[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/5279/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>UITextView如何计算高度</title>
		<link>https://www.coder4.com/archives/5070</link>
					<comments>https://www.coder4.com/archives/5070#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 05 Aug 2016 10:58:54 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[UITextView]]></category>
		<category><![CDATA[高度]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=5070</guid>

					<description><![CDATA[let address = UITextView(frame: CGRectZero) address.text = restaurant.address let sizeThatFits = address.sizeThatFits(CGSize(width: view.frame.width, height: CGFloat(MAXFLOAT))) mainView.addSubview(address) address.snp_makeConstraints { (make)[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/5070/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[转]Masonry介绍与使用实践(快速上手ios的Autolayout)</title>
		<link>https://www.coder4.com/archives/4902</link>
					<comments>https://www.coder4.com/archives/4902#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 17 Jun 2016 07:46:10 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[Masonry]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4902</guid>

					<description><![CDATA[转载自：Masonry介绍与使用实践(快速上手Autolayout) MagicNumber -&#62; autoresizingMask -&#62; autolayout 以上是纯手写代码所经历的关于页面布局的三个时期 在iphone1-iphone3gs时代 window的size固定为(320,480) 我们只需要简单计算一下相对位置就好了 在iphone4-iphone4s时代 苹果推出了retina屏 但是给了码农们非常大的福利:window的size不变 [......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4902/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[转]AutoLayout魔法 - Hugging 和 Compression</title>
		<link>https://www.coder4.com/archives/4851</link>
					<comments>https://www.coder4.com/archives/4851#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 15 Jun 2016 01:55:04 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[autolayout]]></category>
		<category><![CDATA[Compression]]></category>
		<category><![CDATA[Hugging]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4851</guid>

					<description><![CDATA[转载自： http://www.liuchendi.com/2016/01/29/iOS/35_hugging-and-compression-resistance/ 用AutoLayout也有一段时间了, 之前一直都不是很理解 Content Hugging和 Content Compression的优先级。今天就把这个问题给解决了，到底这两个东西要怎么用？这篇文章算是学习笔记吧 &#160; Intrinsic Content Size 在学习这两个东西前，首先得明[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4851/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
