ios - UITabBar 在顶部还是其他?

标签 ios swift uitabbarcontroller uitabbar

我是 swift 的新手,打算创建一个 UI,其中显示了一个制表符,当我阅读 apple 的人机界面指南 时,他们说不要在顶部使用 UITabBar。我们可以自定义使用它,但是很多人说在App Store提交时会被拒绝。

那么顶部的选项卡应该使用什么而不是 UITabar?

最佳答案

您应该在导航栏中使用分段控件,如 iOS 人机界面指南中的示例所示:

https://developer.apple.com/ios/human-interface-guidelines/ui-controls/segmented-controls/

Segmented control in navigation bar

关于ios - UITabBar 在顶部还是其他?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39483820/

相关文章:

swift - 如何复制 UIImage?

ios - 在 Interface Builder 中从 "first"重命名选项卡

objective-c - 无法在低于IOS6的设备上测试社交框架

ios - 使用 CTMessageCenter 发送短信 (iOS 7)

iphone - 如何为 UISlider 轨道使用不可拉伸(stretch)但重复的背景图像?

ios - UITabBarController -shouldAutorotateToInterfaceOrientation : warning

objective-c - 在不相关的(表) View Controller 之间交换数据?

ios - 我想在 Swift 中使用 Objective-C 的函数

ios - Swift UILocalNotification 在屏幕上显示

Xcode 的 iOS 构建问题 (10.2)