简体   繁体   English

iOS iPhone在标签控件下方添加标签和文本字段

[英]iOS iPhone Add label and text field below tab control

I'm a beginner with iOS apps, and I inherited an app I need to make some changes to. 我是iOS应用程序的初学者,并且继承了我需要对其进行一些更改的应用程序。

The main view of the app is a tab view, and we'd like to add below the tab view a box with some labels (and text). 该应用程序的主视图是一个标签视图,我们想在标签视图下方添加一个带有一些标签(和文本)的框。 The labels shouldn't change as the tabs change. 标签不会随着标签的改变而改变。

How do I do this? 我该怎么做呢?

I noticed something called a SplitView, but I wasn't sure how to use it, and if it's relevant for my need. 我注意到一个叫做SplitView的东西,但是我不确定如何使用它,以及它是否与我的需求有关。

I hope that my needs are clear enough. 我希望我的需求足够明确。 If anyone could make recommendations as to how to do it/point me in the direction of a tutorial, I'd be very appreciate. 如果有人可以提出建议,或者将我的指导指向我,我将不胜感激。

Thanks in advance! 提前致谢!

The UISplitView is only for iPads. UISplitView仅适用于iPad。 It will not work on the iPhone as far as I know. 据我所知,它将无法在iPhone上运行。 How are you creating your UITabBar. 您如何创建UITabBar。 If you do it programatically you might be able to create it like something like this: 如果您以编程方式执行此操作,则可以像下面这样创建它:

Pseudo Code 伪码

 UITabBarController *mySpecialController = [[UITabBarController alloc] initWithFrame:CGRectMake('put in coordinates here')];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM