开发者

allocating multiple instance of the same class on the same line

开发者 https://www.devze.com 2023-02-04 15:33 出处:网络
@interface Velocity2 : UIViewController { UILabel * answerLabel; UITextField * varA,varB,varC; Is this legal to do or is below the only way to do it?
@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

精彩评论

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