When I tried to run my app developed using xcode 4.6 on IOS 7, the navigation bar colors looked different, they appear on the default blue color while the back button is showing the same color as you assigned to, Is there any way to fix that? to change the navigation bar color?
Thank you
Related
Background:
I am working on an application with multiple tabs, so there is a more tab on the right.
Issue:
In iOS 7, the colour of icons in more tab was grey, which is Apple's default.
But from iOS 8 and later, the colour of those icons are changed to blue.
Expected:
I want the icons colour in the more tab to be grey.
I have tried multiple solutions related to UITabBar icon's images, but no one worked.
I have attached the images for both iOS7 and iOS8-and-later.
Try changing your application's global tint color. If you are using Storyboards, this option is available in the Documents section of the File Inspector.
According to Apple's documentation here, "If you don’t specify a tint for the window, it uses the system default color."
In my app , status bar is overlapping to navigation bar. I tried a lot but did not get success.
Here, in color green is my navigation bar. Problem is in only iOS 6.0 and iOS 6.1. It is working perfect in iOS 7.0 and iOS 7.1. Navigation bar displayed half in iOS 6.0 and in iOS 6.1. Status bar is overlapping here
I am using Xcode 5.1.1, Deployment to SDK 7.1. For some reason when I add a Tab Bar Controller, the Items in the bottom does not show up, all bottom bar is gray, the View Controllers associated has the same gray bar, and do not show the items. When I run the simulator the Items Bar is normal. Already tried to change to global tint, re-start Xcode, new project and still the same.
I really appreciate any suggestion.
I had this problem before and after search found it is a bug in Xcode 5. After I reinstall Xcode the problem did not occur anymore.
I have added a PickerView to a ViewController in my iPhone storyboard, however it doesn't display in the correct default colours, it displays as all white, except the text colour which is black. I'm using the latest version of Xcode and building for iOS v7.
iOS 7 has changed the UI of the components like UIPickerView. This is the new look of iOS 7 and it has the default background as transparent.
I have an iOS 6 application that sets the tint color for all navigation bar buttons to a green color by using the following:
[[UIBarButtonItem appearance] setTintColor:[UIColor colorWithRed:(100.0f/255.0f) green:(190.0f/255.0f) blue:(100.0f/255.0f) alpha:1.0f]];
This is done at the launch of the application. This works fine on phones running iOS 6 but on phones running iOS 7 the tint color is sometimes there and and sometimes not. It especially happens when an AlertView is displayed. This wipes out the tint color of any buttons displaying the correct green tint and reverts the buttons back to the standard iOS 6 blue tint.
To confirm it isn't something I'm doing in my larger project, I have created a basic template Master-detail xcode project to confirm and only added the above line and an alertview popup and this happens there as well.
I am wondering if 1.) anyone else is experiencing this 2.) if so, have you found a work-around and 3.) anyone know if Apple has confirmed this as a bug.
At this time we are not looking to convert this app to the iOS 7 look-and-feel so that is not an option. Thx.
From the official Apple Documentation:
In iOS 6, tintColor tinted the background of navigation bars, tab
bars, toolbars, search bars, and scope bars. To tint a bar background
in iOS 7, use the barTintColor property instead.
You should refer to the complete UI transition guide to see what UI elements behave in a different way in iOS 7. If you want to support both you can check the iOS version and put different code for each version:
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) {
// Load resources for iOS 6.1 or earlier
} else {
// Load resources for iOS 7 or later
}