iOS set background color for all viewcontroller self.view's

前端 未结 4 423
既然无缘
既然无缘 2021-01-04 01:39

Is there a way to set same background image for all views?

Setting same background in all viewDidLoad: methods. It\'s not cool.

4条回答
  •  Happy的楠姐
    2021-01-04 02:06

    I guess you can use Method Swizzling kind some feature to change all views colour or image setting.

    Check following

    https://wiredcraft.com/blog/method-swizzling-ios/

提交回复
热议问题