0
如何檢查選項卡欄中的視圖控制器的指定索引是否是我的視圖控制器?檢查視圖控制器的選項卡欄成員是我的視圖控制器?
我在下面的代碼完成:
if(((UIViewController*)[self.tabBarController.viewControllers objectAtIndex:2]) == BookmarkViewController)
但它給錯誤:
Unexpected interface name 'BookmarkViewController': expected expression
什麼是檢查它的正確方法?
太棒了!謝謝!! – Rendy 2012-08-07 05:27:29