摘要: 针对每一个类,内存该如何管理都要总结 阅读全文
posted @ 2013-02-01 16:53 ygm900 阅读(156) 评论(0) 推荐(0) 编辑
摘要: http://my.oschina.net/jeans/blog/68271 阅读全文
posted @ 2013-02-01 16:52 ygm900 阅读(124) 评论(0) 推荐(0) 编辑
摘要: iOS开发UIViewController内存管理是本文要介绍的内容,在iOS3.0 后,UIViewController多了一个叫做 viewDidUnLoad 的方法。不少人都不清楚这个方法的具体意义,苹果的文档也就一句 ”Called when the controller’s view is released from memory” 简单的解释了下,并要求你把 IBOutlet 绑定的视图给清空,为什么呢? 先看下UIViewController从创建 view 到展示的流程的几个函数 -initWithNibName:bundle: 这两个方法都是初始化一个 vc,但请注意 ... 阅读全文
posted @ 2013-02-01 16:02 ygm900 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 转自:http://unmi.cc/uiwebview-replace-uitextview-line-height 阅读全文
posted @ 2013-02-01 10:04 ygm900 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、使用UITextView 让字符串自动换行(字符串中包含\r\n) UITextView *uitv_remark = [[UITextView alloc]initWithFrame:CGRectMake(10, 48, 220, 420)]; uitv_remark.text = [[NSString alloc]initWithFormat:[member objectForKey:@"description"]]; [uitv_remark setFont:[UIFont systemFontOfSize:15]];... 阅读全文
posted @ 2013-02-01 10:03 ygm900 阅读(212) 评论(0) 推荐(0) 编辑