xcode 如何在 iPhone 的屏幕顶部放置标签栏

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13054636/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:55:55  来源:igfitidea点击:

How to place tab bar on top of screen in iPhone

iphonexcodeuitabbarcontroller

提问by 07405

I m pretty new to objective -C and have stumbled upon this issue ..

我对objective-C很陌生并且偶然发现了这个问题..

I have to have a tab bar on top of screen and some buttons like search ,Info,Profile on it .If a button is pressed then correspondingly it should open its own view.But I found that in iPhone tab bar is placed at bottom. How can I place tab bar on top of screen.? If not possible then what could be the alternative to achieve my task .

我必须在屏幕顶部有一个标签栏,上面有一些按钮,如搜索、信息、配置文件。如果按下按钮,则相应地它应该打开自己的视图。但我发现在 iPhone 中,标签栏位于底部。如何将标签栏放在屏幕顶部。?如果不可能,那么实现我的任务的替代方法是什么。

Any help is appreciable...

任何帮助都是可观的......

回答by iNeal

i think what you searching is here. https://github.com/hollance/MHTabBarController

我想你搜索的东西就在这里。 https://github.com/hollance/MHTabBarController

回答by Tim Vermeulen

An alternative to your task is placing it at the bottom. It's against the iOS User Interface Guidelinesto place it anywhere else.

您的任务的替代方法是将其放在底部。将它放在其他任何地方都是违反iOS 用户界面指南的