Reputation: 1474
After setting
UINavigationBar.appearance.barTintColor = COLOR_TINT;
i got this appearance launching iMessage within an app
Upvotes: 0
Views: 205
Reputation: 11
UINavigationBar.appearance.barTintColor = nil;
should set before initialization. Like this:
UINavigationBar.appearance.barTintColor = nil;
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
Upvotes: 1
Reputation: 6952
It seems that you don't want your MFMessageComposeViewController don't have the same appearance.
Before present your Message ViewController, set barTintColor to default Color which is nil.
UINavigationBar.appearance.barTintColor = nil ;
and recover your barTintColor after MFMessageComposeViewController is dismissed.
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
{
[self dismissModalViewControllerAnimated:YES] ;
UINavigationBar.appearance.barTintColor = COLOR_TINT ;
}
Upvotes: 0
Reputation: 1848
Do you set the bar tint in the app delegate?
try setting the tint in every controller instead...
Upvotes: 0