How do you color/customize the UIImagePickerController's Navigation Bar?

后端 未结 7 1628
野的像风
野的像风 2021-02-02 09:48

What is the correct way to color the UIImagePickerController\'s nav bar?
I merely tried to see the background color but I\'m getting a faded color as seen in the image bel

相关标签:
7条回答
  • 2021-02-02 10:30

    Here the right solution code in Objective-C. Might be useful.

    imagePickerController.navigationBar.translucent = NO;
    imagePickerController.navigationBar.barTintColor = [UIColor colorWithRed:0.147 green:0.413 blue:0.737 alpha:1];
    imagePickerController.navigationBar.tintColor = [UIColor whiteColor];
    imagePickerController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor]};
    
    0 讨论(0)
提交回复
热议问题