我有一个UIButton文本"探索应用程序"和UIImage(>)在Interface Builder它看起来像:
UIButton
UIImage
Interface Builder
[ (>) Explore the app ]
但我需要UIImage在文本之后放置:
[ Explore the app (>) ]
我怎样才能UIImage向右移动?
iphone cocoa-touch uibutton ios imageedgeinsets
我想在按钮的右侧放置一个图像,在左侧放置文本。但是我希望文本距离按钮的左边距20点,图像距离右边距20点。我该怎么做?我想在UIButton中使用本机图像和标签,我不想在按钮上方放置任何内容。这是一个例子:
ios swift swift3
ios ×2
cocoa-touch ×1
imageedgeinsets ×1
iphone ×1
swift ×1
swift3 ×1
uibutton ×1