iOS有关uilable的部分操作

    xiaoxiao2022-06-22  19

     //添加titlebar

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

        CGRect rectTitle=CGRectMake(100, 22, WIDTH-200, 40);

        title.frame=rectTitle;

        title.text=@"睡眠款一号";

        title.textColor=[UIColor whiteColor];

        title.textAlignment=UITextAlignmentCenter;

        title.font=[UIFont systemFontOfSize:16.0];

    转载请注明原文地址: https://ju.6miu.com/read-1122812.html

    最新回复(0)