UILabel顯示不全: 設(shè)置 UILabel 的 adjustsFontSizeToFitWidth = true 可以消除這個(gè)現(xiàn)象胁镐;
UIButton 文本位置:
設(shè)置UIButton字體居左顯示
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
設(shè)置button的title就距左邊10個(gè)像素的距離仓犬。
button.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);