2

I'm making a snippet to make UILabels faster. In this snippet I really just want to set the variable name once and then use it later when setting the color and background color. How can I reuse what I set in <#labelName#> so I don't have to write it for every attribute I alter?

UILabel *<#labelName#> = [[UILabel alloc] initWithFrame:CGRectMake(<#x#>, <#y#>,<#width#>, <#height#>)];
<#labelName#>.textColor = <#UIColor#>
<#labelName#>.backgroundColor = [UIColor clearColor];
4

0 回答 0