正文
Xcode的代码片段(Code Snippets)创建自定义的代码片段,当你重用这些代码片段时,会给你带来很大的方便。
常用的:
1.strong:
@property (nonatomic,strong) <
2.weak:
@property (nonatomic,weak) <
3.copy:
@property (nonatomic,copy) NSString *<
4.assign:
@property (nonatomic,assign) <
5.delegate:
@property (nonatomic,weak) id<<
6.block:
@property (nonatomic,copy) <
7.mark:
8.ReUseCell:
static NSString *rid=<
<
if(cell==nil){
cell=[[<
}
return cell;
9.MainGCD:
dispatch_async(dispatch_get_main_queue(), ^{
<
});
10.AfterGCD:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(<
<
});
11.OnceGCD:
static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{
<