Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モーダルビューコントローラーがあり、そのナビゲーションバー(UINavigationItemだと思います)に、現在のビューコントローラーのナビゲーションバーの色を継承させたいと思います。どうすればよいですか?
モーダルビューコントローラを提示する前に設定してください。例えば:
viewController.navigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor; [self presentModalViewController:viewController animated:YES];