Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当两个视图的区域重叠时,如何控制哪个视图显示哪个视图被另一个隐藏,谢谢。我搜索了interfacebuild,没有任何选项可以解决这个问题。
如果您想以编程方式执行此操作,您可以调用:
[view bringSubviewToFront:subview] 和 [view sendSubviewToBack:subview]。
[view bringSubviewToFront:subview]
[view sendSubviewToBack:subview]
在Interface Builder中,您可以通过以下方式进行控制:
select view --> Editor --> Arrange --> Send forward/backward/to front/to back(见截图)
select view --> Editor --> Arrange --> Send forward/backward/to front/to back