相关疑难解决方法(0)

iPhone UIButton - 图像位置

我有一个UIButton文本"探索应用程序"和UIImage(>)在Interface Builder它看起来像:

[ (>) Explore the app ]
Run Code Online (Sandbox Code Playgroud)

但我需要UIImage在文本之后放置:

[ Explore the app (>) ]
Run Code Online (Sandbox Code Playgroud)

我怎样才能UIImage向右移动?

iphone cocoa-touch uibutton ios imageedgeinsets

113
推荐指数
9
解决办法
8万
查看次数

UIButton,左侧显示文本,右侧显示图像

我想在按钮的右侧放置一个图像,在左侧放置文本。但是我希望文本距离按钮的左边距20点,图像距离右边距20点。我该怎么做?我想在UIButton中使用本机图像和标签,我不想在按钮上方放置任何内容。这是一个例子: 在此处输入图片说明

ios swift swift3

5
推荐指数
2
解决办法
7807
查看次数

标签 统计

ios ×2

cocoa-touch ×1

imageedgeinsets ×1

iphone ×1

swift ×1

swift3 ×1

uibutton ×1