2
我想获取tabbarController的选定索引。获取选定的索引tabbar控制器Swift
let application = UIApplication.sharedApplication().delegate as AppDelegate
let tabbarController = application.tabBarController as UITabBarController
let selectedIndex = tabBarController.selectedIndex
我得到这个错误:'UITabBarController?' does not have a member named 'selectedIndex'
我缺少的东西?