UILabel显示不全: 设置 UILabel 的 adjustsFontSizeToFitWidth = true 可以消除这个现象;

UIButton 文本位置:
设置UIButton字体居左显示
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
设置button的title就距左边10个像素的距离。
button.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);

网友评论