第一步:创建微博模型,完成字典转模型#import //#import /** * 第一步:创建微博模型,完成字典转模型 */@interface LLWeiBo : NSObject/** * icon */@property (nonatomic, copy) NSString *icon;.....
分类:
其他好文 时间:
2014-11-28 17:54:24
阅读次数:
257
转自:http://www.cocoachina.com/industry/20140825/9450.html(via:玉令天下的Blog)本文讲述了UITableView、UICollectionView实现 self-sizing cell 布局的知识,以及如何用 InvalidationCo...
分类:
移动开发 时间:
2014-11-28 15:42:58
阅读次数:
292
效果图:工程图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UITableView *myTableView;}@endRootViewController.m#import ...
分类:
其他好文 时间:
2014-11-28 14:19:05
阅读次数:
256
创建UITableViewController子类的实例后,IDE生成的代码中有如下段落:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ...
分类:
其他好文 时间:
2014-11-28 11:46:28
阅读次数:
131
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView =.....
分类:
其他好文 时间:
2014-11-27 18:07:28
阅读次数:
126
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView ...
分类:
其他好文 时间:
2014-11-27 17:47:45
阅读次数:
119
从带有tableview并且使用Mj下拉刷新的视图调用popViewControllerAnimated的时候,控制台打印这个:An instance 0x15d7aa00 of class UITableView was deallocated while key value observers ...
分类:
其他好文 时间:
2014-11-27 12:15:56
阅读次数:
228
本章内容:
● 学习如何进阶使用UITableView,带给应用更高级的观感(look and feel)
● 学习如何开发自己定制的UITableView类,模仿iMessage应用的观感
● 为一个基于分组的UITableView实现下钻逻辑
在iOS应用中呈现数据时,UITableView可能是最经常使用的用户界面对象。在本章中,将学习到以超越标...
分类:
移动开发 时间:
2014-11-27 10:49:39
阅读次数:
204
使用 convertRect: fromView: 或者 convertRect: toView:例如一个视图控制器的view中有一个UITableView,UITableView的某个cell中有个UITextField,想要得到UITextField在view中的位置,就要靠上面的两个方法了。用...
分类:
其他好文 时间:
2014-11-26 20:42:38
阅读次数:
161
1 在代码中使用默认UITableViewCell生成单元时,若事先没在viewDidLoad中注册,则不能使用dequeueReusableCellWithIdentifier: forIndexPath:方法,否则报错。如UITableViewCell *cell = [tableView de...
分类:
移动开发 时间:
2014-11-26 15:58:24
阅读次数:
164