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.
是否可以在屏幕顶部有一个 UIToolbar?示例应用程序类似于“日历”,右侧有“+”,左侧有“日历”按钮。
你可以在UIToolbar任何地方放一个。这只是一个 UI 视图。
UIToolbar
在屏幕顶部,您通常会放置一个UINavigationBar. UIToolbars通常放置在屏幕底部。
UINavigationBar
UIToolbars
您可以在 a 的loadView方法中以编程方式添加它,也可以UIViewController在 XIB 资源文件中以图形方式添加它。
loadView
UIViewController