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.
你如何从一种观点转到另一种观点?是
[window addSubview:myView];
唯一的选择还是有更好的方法来做到这一点?
首先看一下 Apple 的iOS 视图控制器编程指南。您可能会从它听起来的基于导航的界面开始。您所说的完全正确,但您想利用动画等功能,如果您使用 Apple 的视图控制器类,这些功能是“免费”的。