1.copy:
@property (nonatomic, copy) NSString *<#string#>;
2.strong:
@property (nonatomic, strong) <#Class#> *<#object#>;
3.weak:
@property (nonatomic, weak) <#Class#> *<#object#>;
4.assign:
@property (nonatomic, assign) <#Class#> <#property#>;
5.delegate:
@property (nonatomic, weak) id<<#protocol#>> <#delegate#>;
6.block:
@property (nonatomic, copy) <#Block#> <#block#>;
7.mark:
#pragma mark - <#mark#>
8.warning:
#warning <#message#>
9.ReUseCell:
static NSString *rid=<#rid#>;
<#Class#> *cell=[tableView dequeueReusableCellWithIdentifier:rid];
if(cell==nil){
cell=[[<#Class#> alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:rid];
}
returncell;
10.initObj:
if(self=[superinit]){
<#init#>
}
returnself;
11.dataFill:
-(void)dataFill:(<#ModelClass#> *)<#model#>{
<#code#>
}
12.MainGCD:
dispatch_async(dispatch_get_main_queue(), ^{
<#code#>
});
13.GlobalGCD:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
<#code#>
});
14.AfterGCD:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(<#delayInSeconds#> * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
<#code to be executed after a specified delay#>
});
15.OnceGCD:
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
<#code to be executed once#>
});
欢迎关注我的微信公众号: Cydiapple欢迎访问: https://github.com/XLsn0w
Xcode的代码片段(Code Snippets)创建自定义的代码片段
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 代码片段 Xcode的代码片段(Code Snippets)创建自定义的代码片段,当你重用这些代码片段时,会给你带...