2012年8月29日
摘要: NSNotificationCenter 在 init里面注册这个通知,NSString* const str = @"FuckMe"; [[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(on:) name:strobject:nil];在dealloc里面移除这个通知的注册: [[NSNotificationCenter defaultCenter]removeObserver:self name:strobject:nil];以上为不带参数的通知一般在使用NSNotificati 阅读全文
posted @ 2012-08-29 16:51 easonoutlook 阅读(18872) 评论(1) 推荐(0) 编辑
摘要: 之前设置UITableViewCell的checkMark的属性,有20个cell选择其中的一个进行设置checkmark ,但是一直无法设置成功,之前采用的方式是通过indexPath来标记将上一个indexPath设置为oldIndexPath, 但是无法标记成功,后面把上一个 UITableViewCell 来作为标记,可以解决。代码如下[tableView deselectRowAtIndexPath:indexPath animated:YES]; if ([indexPath section] == 0) { if (self.wallpaperIndexpat... 阅读全文
posted @ 2012-08-29 10:41 easonoutlook 阅读(2512) 评论(0) 推荐(0) 编辑