UILabel:
其对齐是通过设置
textAlignment
UIButton:
其对齐不能设置titlelabel里面的textAlignment 这样的话label中的文字虽然左对齐但是label还是位于button的中部位置
应该修改其
contentHorizontalAlignment 属性
uibutton如果要改变icon的颜色 需要把他的Style由custom修改为system 然后修改tintColor
UILabel:
其对齐是通过设置
textAlignment
UIButton:
其对齐不能设置titlelabel里面的textAlignment 这样的话label中的文字虽然左对齐但是label还是位于button的中部位置
应该修改其
contentHorizontalAlignment 属性
uibutton如果要改变icon的颜色 需要把他的Style由custom修改为system 然后修改tintColor