2015年6月3日
摘要: 原文:http://blog.csdn.net/dqjyong/article/details/7672865Objective-C里面的Key-Value Observing (KVO)机制,非常不错,可以很好的减少浇水代码。关于KVO的学习,可以参考文章:《Key-Value Observing... 阅读全文
posted @ 2015-06-03 10:16 whqfor 阅读(169) 评论(0) 推荐(0) 编辑
  2015年6月1日
摘要: 原文:http://www.cocoachina.com/ios/20140925/9755.html在iOS开发中经常遇到两个词Frame和bounds,本文主要阐述Frame和bound的区别,尤其是bound很绕,很难理解。一、首先,看一下公认的资料先看到下面的代码你肯定就明白了一些:1234... 阅读全文
posted @ 2015-06-01 21:35 whqfor 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/dizzthxl/article/details/9031255UIViewController initWithNibName这时候是延迟加载主要代码如下: ShowViewController* showMessage = [[Show... 阅读全文
posted @ 2015-06-01 09:46 whqfor 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/chaoyuan899/article/details/13291637tableView表格中的cell有重用机制,这是一个很好的东西,可以避免开辟很多的空间内存。但是有时候我们不想让它重用cell,,可以用以下的代码解决。将这个代码放在:- (UI... 阅读全文
posted @ 2015-06-01 09:36 whqfor 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/omegayy/article/details/7356823创建UITableViewController子类的实例后,IDE生成的代码中有如下段落:- (UITableViewCell *)tableView:(UITableView *)tabl... 阅读全文
posted @ 2015-06-01 09:04 whqfor 阅读(303) 评论(0) 推荐(0) 编辑
  2015年5月30日
摘要: 转载自http://blog.sina.com.cn/s/blog_8c87ba3b0100t89v.htmlbundle是一个目录,其中包含了程序会使用到的资源. 这些资源包含了如图像,声音,编译好的代码,nib文件(用户也会把bundle称为plug-in). 对应bundle,cocoa提供了... 阅读全文
posted @ 2015-05-30 10:31 whqfor 阅读(128) 评论(0) 推荐(0) 编辑