2012-02-19 78 views
1

我是iOS应用程序的初学者,我继承了我需要进行一些更改的应用程序。iOS iPhone在标签控件下方添加标签和文本字段

该应用程序的主视图是一个选项卡视图,我们希望在选项卡视图下方添加一些带有一些标签(和文本)的框。标签不应随标签更改而改变。

我该怎么做?

我注意到了一种叫做SplitView的东西,但我不确定如何使用它,以及它是否与我的需求相关。

我希望我的需求足够清楚。如果任何人都可以就如何做到这一点提出建议/指导我指导教程的方向,我将非常感激。

在此先感谢!

回答

1

UISplitView仅适用于iPad。据我所知,它不会在iPhone上工作。你如何创建你的UITabBar。如果你这样做编程,你也许能够像这样的创建:

伪码

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

这里是一个很好的一个,我发现了UITabBar定制:HTTP://stackoverflow.com/questions/ 2568727/uitabbar的定制 – logixologist 2012-02-19 19:46:37

+0

我看了看那里,你知道,如果他指的是这种方法 - (BOOL)申请:(UIApplication的*)应用程序didFinishLaunchingWithOptions:(NSDictionary的*)launchOptions { \t用户*用户= [[用户页头] 在里面]; \t if([user isActive]){ \t \t [self startApp]; \t} \t else { \t \t NSString * status = [user getStatus]; \t \t SubscriptionController * subCont = [[SubscriptionController alloc] initWithStatus:status]; \t \t [window addSubview:subCont.view]; \t} \t \t [user release]; \t \t [self.window makeKeyAndVisible]; return YES; } – 2012-02-20 16:26:06