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