开发者

allocating multiple instance of the same class on the same line

@interface Velocity2 : UIViewController {
UILabel * answerLabel;
UITextField * varA,varB,varC;

Is this legal to do or is below the only way to do it?

    UITextField * varA;
    UIText开发者_开发技巧Field * varB;
    UITextField * varC;


Legal:

UITextField *varA, *varB, *varC;


UITextField *varA, *varB, *varC;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜