UIToolBar + UINavigationController 位于屏幕顶部
我读过一些关于人们将自己的图标或苹果图标放入工具栏,或作为自定义视图放入 rightBarButtonItem 的文章。我想知道这是否被认为是不好的做法、好的做法、好的做法等等。我环顾四周,看到了这个:http://www.techtree.com/India/Features/Top_5_Productivity_Apps_for_iPad/551-115236-899-2.html。在 Numbers 应用程序或 Keynote 应用程序中,看起来他们使用 UINavigationController 或某种方式在 RHS 上导航 + 自定义图标。我也想做同样的事情,但我不知道这是否被认为是不好的做法,或者是应该避免的事情,以防苹果将来改变事情。我基本上想要几个栏按钮项目和一个 UISearchBar。底部有一个搜索栏对我来说看起来很有趣。我注意到 iPhone 上的 Facebook 应用程序有一个简洁的视图控制器,您单击左上角的图标,它会打开一种浏览其应用程序的方式。不知道有没有人有相关教程。
I have read a few posts about people putting in either their own icons or Apple's icons into a toolbar, or as a customview into the rightBarButtonItem. I was wondering if that's considered bad practice, ok practice, good practice, etc. I was looking around, and I saw this: http://www.techtree.com/India/Features/Top_5_Productivity_Apps_for_iPad/551-115236-899-2.html. In the Numbers app or Keynote App, it looks like they use a UINavigationController or some way to navigation + custom icons on the RHS. I'd like to do the same, but I didn't know if this was considered bad practice, or something to be avoided in case Apple changes things down the line. I basically want a couple bar button items and a UISearchBar. Having a search bar at the bottom looks funny to me. I noticed the Facebook app on the iPhone has a neat viewcontroller where you click the top left icon and it opens a way to navigate through their app. I don't know if anyone has a tutorial of what's going on there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多应用程序可以实现您所说的功能,因此 Apple 不应该给您带来任何问题。
“以防苹果公司做出改变。”
另一方面,他们可能对任何类型的应用程序都很挑剔,因此没有任何保证。他们将来可能会要求所有 iPhone 应用程序都支持横向模式。你永远不知道。
如果您想了解有关“推荐”控件使用的更多信息,请查看 Apple 用户界面指南。
There are plenty of apps that do what your talking about, so Apple shouldn't give you any problems.
" in case Apple changes things down the line."
On the other hand, they can be finicky about any kind of app, so there are no guarantees. They may require all iPhone apps support landscape mode in the future. You never know.
Look over the Apple User Interface Guidelines if you want to know more about their "recommended" control use.