_lable = ({

        UILabel *lb = [[UILabel alloc] init];

        lb.textColor = [UIColor blackColor];

        lb.backgroundColor = [UIColor whiteColor];

        lb.frame  = CGRectMake(10, 0, 100, 30);

        lb.textAlignment = NSTextAlignmentCenter;

        lb.text = @"00";

        lb;

    });//复合语句

 

if...else...

{}同样使用了c语言的复合语句。

 

posted on 2017-01-19 16:19  非是  阅读(445)  评论(0编辑  收藏  举报