UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(65, 10, 200, 60)];
label.font = [UIFont systemFontOfSize:32.0f];
label.textColor = [UIColor colorWithRed:131.0/255.0 green:205.0/255.0 blue:6.0/255.0 alpha:1.0];
label.backgroundColor = [UIColor clearColor];
label.textAlignment = UITextAlignmentCenter;
label.text = @"美食详情";
代码设置label颜色RGB值
最新推荐文章于 2024-03-02 18:19:23 发布
