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.
我需要能够更改 UIViewController 上对象的顺序(排列),这样当点击一个东西时它会出现在前面,当另一个东西被点击时它会出现在前面等等。这可能吗?
当然。在父级上,调用 UIView 方法带来SubviewToFront:。还有 exchangeSubviewAtIndex:withSubviewAtIndex: 用于更复杂的重新排序。