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.
我们可以在任何地方调用 SVProgress.show() 来显示进度,但特别是从哪里显示进度?谁负责展示它?是根视图控制器吗?
如果您在 iOS 开发中注意到,我们所有的视图控制器都会呈现或推送到另一个视图控制器。但是我们的主视图控制器显示在我们应用程序的窗口中。同样,如果我们在窗口上添加一些视图,它将独立于任何视图控制器。以同样的方式,任何 PregressView 都会显示在我们应用程序的窗口上。