iPhone Dev - UIToolbar 进入窗口还是视图?
我应该将 UIToolbar 放在窗口底部的右侧,然后将视图放在其上方(这样视图就不会在工具栏下方继续),还是应该让视图覆盖整个窗口,然后将工具栏添加为视图的子视图? 所以我的问题是,工具栏应该是视图还是窗口的子视图? - 窗口:工具栏将与视图处于同一水平,并且不会与其重叠 - 视图:它将位于视图内部。
谢谢!!
Should I put the UIToolbar right in the window at the bottom, and then put the view above it (so the view doesn't continue underneath the toolbar), or should I just make the view cover the whole window and then add the toolbar as a subview to the view? So my question is, should the toolbar be a subview of the view or the window?
- the window: the toolbar would be on the same level as the view, and would not overlap it
- the view: it would be inside the view.
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您想将工具栏作为子视图添加到视图中。 视图会优化自身以不绘制被子视图覆盖的任何部分,因此这样做也不应该影响性能。
I believe you want to add the toolbar as a subview to the view. Views optimize themselves to not draw any part that is covered up by a subview, so you shouldn't get a performance hit by doing this either.