摘要:
12345678910111213//方法一:cell.contentView.backgroundColor = [UIColor redColor];//方法二:UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];UIView* bgview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1, 1)];bgview.opaque = YES;bgview.backgroundColor = [UIColor orangeC 阅读全文
摘要:
一:创建 宏 文件SynthesizeSingleton.hSynthesizeSingleton.h#if __has_feature(objc_arc) // ARC Version#define SYNTHESIZE_SINGLETON_FOR_CLASS(classname) \\+ (classname *)shared##classname\{\ static classname *shared##classname = nil;\ static dispatch_once_t onceToken;\ dispatch_once(&onceToken, ^{\... 阅读全文