1
這兩行代碼之間有區別嗎?切換選項卡的方法之間的區別
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:1];
和
self.tabBarController.selectedIndex = 1;
我的應用剛剛墜毀在上面的語句,所以可能有一些內存問題。一種方法比另一種有什麼優點?
有趣。謝謝。 – Bryan 2009-09-28 17:07:51