随笔分类 -  iOS开发

摘要:NSDictionary*_dic1=[NSDictionarydictionaryWithObjectsAndKeys:@"2030",@"year",@"1",@"month",nil];NSDictionary*_dic2=[NSDictionarydictionaryWithObjectsA... 阅读全文
posted @ 2014-07-23 11:59 fan_yufan 阅读(261) 评论(0) 推荐(0)
摘要:利用 文件操作柄,也就是 NSFileHandle这类物件,我们 可以更加近距离地 操作 文件。一般来说,操作 文件 需要 下面三个步骤:打开 文件,为 这个文件 创建 文件操作柄;进行 输入/输出操作;关闭 文件。下面的表格 总结了 可以对文件操作柄所采取的措施:措施名称描述+(NSFileHan... 阅读全文
posted @ 2014-07-17 10:14 fan_yufan 阅读(499) 评论(0) 推荐(0)
摘要:列举两个场景对比一下,也许tableviewcell的复用就很清晰明了了。1, 1 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ 2 3 static NSString *CellIdentifier = @"cell1"; 4 UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 5 6 ... 阅读全文
posted @ 2014-03-07 23:58 fan_yufan 阅读(327) 评论(0) 推荐(1)