我在视图控制器上使用标签栏控制器而不是委托,并使用下面提到的代码。
tabController = [[UITabBarController alloc]init];
tabController.delegate = self;
scanView = [[ScanTicketView alloc] init];
searchView = [[SearchView alloc] init];
historyView = [[HistoryView alloc]init];
tabController.viewControllers=[NSArray arrayWithObjects:scanView,searchView,historyView, nil];
[self.navigationController pushViewController:tabController animated:YES];
它有效,但现在如何将图像应用于这些视图。有人能帮我一下吗。
提前致谢。