这看起来很遥远,但有没有人知道这样的方法:
欢迎您建议私有API方法。
发布于 2010-04-15 10:38:03
您不需要私有API,只需在您的applicationDidFinishLaunching方法中尝试一下。
controller = [[UITabBarController alloc] initWithNibName:nil bundle:nil];
HeadlinesViewController *headlines = [[HeadlinesViewController alloc] init];
OpinionsViewController *opinions = [[OpinionsViewController alloc] init];
controller.viewControllers = [NSArray arrayWithObjects:headlines, opinions, nil];
// set your position , width and height there
controller.tabBar.frame = CGRectMake(0, 20, 320, 50);
[window addSubview:controller.view ];
[window makeKeyAndVisible];发布于 2013-09-18 09:49:40
https://stackoverflow.com/questions/2568727
复制相似问题