Slide 31
Slide 31 text
class TopTabBarController: UITabBarController,
UITabBarControllerDelegate {
func tabBarController(_ tabBarController: UITabBarController,
didSelect viewController: UIViewController) {
let tagNum = viewController.tabBarItem.tag
switch tagNum {
case 2:
let second = FlyingStarViewController.instanceate()
self.present(second, animated: true, completion: nil)
default:
break
}
}
}
͏໎Θͳ͍ʂϞʔμϧͱϓογϡͲ͕͍͍ͬͪͷʁ 31