改变控件label的Frame

2015-11-03 0 337
改变控件label的Frame
由于oc是不允许直接修改frame的所以
 _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(30, 30, 300-25, 20)];
   CGRect floatCont = _contentLabel.frame;
    floatCont.size.height = CGRectGetHeight(rect);
    _contentLabel.frame = floatCont;

遇见资源网 objective-c 改变控件label的Frame http://www.ox520.com/18096.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务