标签:
[label setTextAlignment:NSTextAlignmentCenter]; //文字显示的位置
NSString *str = self.textLabel.text;
CGSize textSize = [str sizeWithFont:UIFont systemFontOfSize:14.0] constrainedToSize:CGSizeMake(w, 10000)
lineBreakMode:NOLine];
标签:
原文地址:http://www.cnblogs.com/linxiu-0925/p/5058121.html