Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在搜索帖子并试图自己弄清楚,但它几乎不起作用。
我想使用UIButton带有图像和标题的图像。 UIButton跨越(几乎)整个屏幕。 图像应位于按钮的右边缘。 标题应位于整个按钮的中心。
UIButton
我怎样才能用插图做到这一点?
感谢我使用过的链接
Control.ContentEdgeInsets = new UIEdgeInsets(0, -imageWidth, 0, 0); Control.ImageEdgeInsets = new UIEdgeInsets(0, controlWidth, 0, 0);