
このビューの色を変更したい。白ではなく、アプリの色と同じボタンビューの色をタブバーに追加します。どのようにそれが可能です。
このためには、カスタマイズする必要がありますmoreNavigationController。1 つの解決策は、メソッドをサブクラス化UITabBarControllerし、次のメソッドを追加する- (void)viewDidLoadことです。
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
UINavigationController *moreController = self.moreNavigationController;
//if u want to custamize navigationBar u can customize
//moreController.navigationBar
if ([moreController.topViewController.view isKindOfClass:[UITableView class]]) {
//Custamize your tableview here
UITableView *tableView = (UITableView *)moreController.topViewController.view;
//Change the color of tableView
[tableView setBackgroundColor:[UIColor redColor]];
moreController.topViewController.view = tableView;
}
}
これがお役に立てば幸いです
カスタマイズするには、tabBarItem他の回答に従うことができます。