夏老湿的代码杂碎  

2012年4月1日

摘要: 多线程中,NSTimer经常用到了,其中的userInfo属性大部分人都是直接赋nil,没去管它起啥作用。其实它是有作用的…传递信息。例子如下:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *newCell = [tableView cellForRowAtIndexPath:indexPath]; UILabel *cellLabel = (UILabel *)[newCell.contentView viewWit.. 阅读全文
posted @ 2012-04-01 13:19 夏老湿 阅读(360) 评论(0) 推荐(0)