摘要: ### 背景很多时候,我们在网上,或者开源项目中,看到类似下面这样创建一个单例: +(MyClass *)singleton { static MyClass *shared = nil; if(shared == nil) { sha... 阅读全文
posted @ 2014-02-20 11:38 剑尖 阅读(182) 评论(0) 推荐(0) 编辑
摘要: > 本文翻译自:[Table View Cells With Varying Row Heights][1]更新:可以看看[这篇文章][2],介绍在iOS8下如何实现自动调整大小的Cell。我发布了几篇关于处理[动态类型][3]的文章,其中包括根据字体大小的变化,改变表视图的行高度。但是这些都是假定... 阅读全文
posted @ 2014-02-20 11:36 剑尖 阅读(421) 评论(0) 推荐(0) 编辑