开发者

How to set which control displays top when they overlap?

开发者 https://www.devze.com 2023-02-24 05:33 出处:网络
I have a UIView and a toolbar. I want the toolbar to always stay on top when they overlap. Is t开发者_StackOverflow社区here a property, like z-index in html stylesheet, for iphone controls?You can cal

I have a UIView and a toolbar. I want the toolbar to always stay on top when they overlap. Is t开发者_StackOverflow社区here a property, like z-index in html stylesheet, for iphone controls?


You can call bringSubviewToFront for the control you want to be on the top.

[somesuperview bringSubviewToFront:yourtoolbar];
0

精彩评论

暂无评论...
验证码 换一张
取 消