Gunosy風のタブを付けるコンテナビューコントローラ。
This is the container view controller, which shows tabs on the top of the screen like Gunosy!
- Copy "BCOTabController" folder in "TabControllerSample" to your project.
- Write code in AppDelegate.m like below.
// create 10 view controllers.
NSMutableArray *viewControllersBuf = @[].mutableCopy;
for (int i = 0; i < 10; i++) {
BCOViewController *vc = [[BCOViewController alloc] init];
[viewControllersBuf addObject:vc];
}
// create BCOTabController instance and set the created view controllers.
self.tabController = [[BCOTabController alloc] init];
_tabController.viewControllers = [viewControllersBuf copy];
self.window.rootViewController = _tabController;
You can change tab colors (background, highlighted background, textc olor, highlighted text color)