1,iOS之UILabel详解
计算lable的size
- (CGSize)setMultiLineWithLable:(UILabel *)lable
{
lable.numberOfLines = 1;//多行显示,计算高度
CGSize size = [lable.text boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width - 20, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]} context:nil].size;
return size;
}
7,UISlider
9,iOS UIActivityIndicatorView 的使用(菊花)
11,UIScrollView
12,UISearchBar
13,UITableview
网友评论