![](/img/trans.png)
[英]Disable tap on current Tab (UITabBarController) iPhone App
[英]Getting the current tab of a UITabBarController
我有一個名為ATabBar的自定義類,它繼承自UITabBarController。
我的.m課程中有以下內容:
- (void) tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
NSInteger tab = self.tabBarController.selectedIndex;
}
似乎永遠不會受到調試。 如何在標簽欄中的功能中單擊選項卡時如何抓取?
管理選定的選項卡
selectedViewController (Property)
selectedIndex (Property)
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.