![](/img/trans.png)
[英]How can I set the background image of multiple buttons in a certain view from a different view?
[英]How i can set background picture for table view and UIView from other class
播放器播放時,我有一些帶有圖片的網址。 我想為所有視圖設置背景圖片。 我該怎么做? 我需要示例代碼。
2種方法
1)在ViewController上編寫一個類別,然后更改類別中的背景圖像。
2)您可以設置主窗口的背景圖像,並設置所有視圖的背景圖像以清除顏色。
我會去第一種方法,它更優雅
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.