可以创建选项卡 - 但是,如何将图形插入每个选项卡以及选项卡后,您如何将其称为新屏幕?
# Create a tabbar
tabbar = UITabBarController.alloc.init
# Each Tab has a view controller allocated
tabbar.viewControllers = [
UIViewController.alloc.init,
UIViewController.alloc.init,
UIViewController.alloc.init,
UIViewController.alloc.init
]
# Selected index to 0
tabbar.selectedIndex = 0
# The root view controller also changed
@window.rootViewController = UINavigationController.alloc.initWithRootViewController(tabbar)
# We will force to use a full screen layout.
@window.rootViewController.wantsFullScreenLayout = true