すべて正常に動作しますが、受け取った 2 つの警告については何も見つかりません。ここにそれらの1つがあります。
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {
NSLog(@"didSelectItem: %d", item.tag);
[self activateTab:item.tag]; //<------viewcontroller may not respond to activateTab
}
- (void)activateTab:(int)index {
switch (index) {
case 1:{
デバッガーでそれは言う
一致するメソッド シグネチャのないメッセージは、'id' を返し、'...' を引数として受け入れると見なされます。