124得票16回答
iPhone UIButton - 图片位置

我有一个文本为“Explore the app”的UIButton和一个UIImage图像。在Interface Builder中,它看起来像:[ (>) Explore the app ] 但我需要把这个UIImage放在文本之后:[ Explore the app (>) ] ...

73得票7回答
如何在程序创建的UIButton上添加左填充?

我在给UIButton添加左内边距方面遇到了麻烦。我有一个UIControlContentHorizontalAlignmentLeft的UIButton,我希望文本显示在左侧,但是它太靠左了。当我设置边框时,效果不好。我想给文本大约5像素的内边距,就像在CSS中一样。我在谷歌上搜索解决方案,...