2012-07-31 42 views

回答

1

您首先需要設置一個委託有任何你想要的文件中指定它被稱爲將被調用的方法 -

[[XLappMgr get] setDeveloperCustomActionSelector:@selector(developerCustomActionMethod:)]; 

那麼你就需要定義一個名爲developerCustomActionMethod方法,做實際的切換。您可以使用以下代碼來選擇您需要切換到哪個選項卡 -

tabBarController.selectedViewController = [tabBarController.viewControllers objectAtIndex:2]; // will select the third tab, as tabs are ranked 0,1,2,3,....