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.
如何制作在所有视图控制器中都应该可见的按钮或任何视图,并且可以从所有视图控制器调用其操作?视图控制器的弹出和推送应该在该按钮后面进行。我没有任何代码,但我有一个参考应用程序 Moise Bently,在这个应用程序的右上角有一个按钮。
尝试将 _yourView/button 添加到您的窗口中...您可以在需要时执行此didFinishLaunchingWithOptions操作[self.window bringSubviewToFront:_yourView]..如果您在其上添加一些其他视图。
didFinishLaunchingWithOptions
[self.window bringSubviewToFront:_yourView]