4
이것은 장거리 슛처럼 보이지만 사람이 할 수있는 방법을 알고 있나요 : 의 UITabBar 사용자 정의
당신에게있어 화면의 상단 부분에
- 총수의 UITabBar 개인 API 메서드를 제안하는 것을 환영합니다.
이것은 장거리 슛처럼 보이지만 사람이 할 수있는 방법을 알고 있나요 : 의 UITabBar 사용자 정의
당신에게있어 화면의 상단 부분에
private 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];