- 博客(5)
- 收藏
- 关注
原创 哈06-自定义UITableViewCell选中效果
1、首先设置 xxxxtableview.separatorStyle=UITableViewCellSelectionStyleNone; 不然cell被重用后,会被还原为默认选中效果 2、在 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
2014-01-26 11:59:33
801
原创 哈05-将数据历史记录存储在沙盒中
1. #define PATHS NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) #define PATH [PATHS objectAtIndex:0] #define USER_SEARCH_HISTORY_PATH [PATH stringB
2014-01-23 11:51:40
704
原创 哈04-xcode系统自带的刷新控件UIRefreshControl
要使用该控件首先必须继承 UITableViewController 1、初始化控件 - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { UIRefreshControl *fresh=[[UI
2014-01-14 09:55:06
810
原创 哈02—kill error_______unable to dequeue a cell with identifier Cell
使用UITableView时经常会遇到以下错误让我们措手不及 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must register a nib or
2014-01-14 09:40:20
922
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人