根据字符串计算label的长度

2017-04-06  本文已影响97人  我的马里奥兄弟

CGSize size = [model.username sizeWithAttributes:@{NSFontAttributeName : font_16}];

self.labelUsername.bounds = CGRectMake(0, 0, size.width, size.height);

上一篇 下一篇

猜你喜欢

热点阅读