Bringing a subview to be in front of all other views

前端 未结 8 1896
走了就别回头了
走了就别回头了 2020-12-07 13:24

I am working on integrating an ad provider into my app currently. I wish to place a fading message in front of the ad when the ad displays but have been completely unsuccess

8条回答
  •  情深已故
    2020-12-07 13:38

    As far as i experienced zposition is a best way.

    self.view.layer.zPosition = 1;

提交回复
热议问题