根据字符串计算label的长度
2017-04-06 本文已影响97人
我的马里奥兄弟
CGSize size = [model.username sizeWithAttributes:@{NSFontAttributeName : font_16}];
self.labelUsername.bounds = CGRectMake(0, 0, size.width, size.height);
CGSize size = [model.username sizeWithAttributes:@{NSFontAttributeName : font_16}];
self.labelUsername.bounds = CGRectMake(0, 0, size.width, size.height);