簡體   English   中英

右側標題中的UIButton圖像

[英]UIButton image on right title in center

我一直在搜索該帖子,並試圖自己找出它,但是它幾乎沒有用。

我想使用帶有圖像和標題的UIButton
UIButton跨越(幾乎)整個屏幕。
圖像應位於按鈕的右邊緣。
標題應位於整個按鈕的中心。

如何處理插圖?

多虧了我提供的鏈接

Control.ContentEdgeInsets = new UIEdgeInsets(0, -imageWidth, 0, 0);
Control.ImageEdgeInsets = new UIEdgeInsets(0, controlWidth, 0, 0);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM