iOS 7.1 NavigationBar tintColor property bugged on iPhone 5s? - uinavigationbar

In my didFinishLaunchingWithOptions method, i set my navigation bar tint color like that;
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
and my all back buttons and other buttons color is white which are on navigationBar. However, on iPhone 5s device and 64-bit simulator, color become gray. Also it is gray when i launch Facebook or Twitter. Is that iOS 7.1 bug on 64-bit or am i set it wrong way?

This was also recognized and asked here. Basically it seems Apple has changed the tinting behavior of UISearchBar in iOS 7.1 on all devices. I can confirm that the same happens on an iPhone 5 therefore given your information this issue has nothing to do with the 64-bit processor as the iPhone 5 doesn't have such a processor. I'm experiencing this on my App as well and couldn't find any good solution yet.

Related

iOS 7 navigation bar background blur effect is not working in iPhone4

In iPhone4 the default iOS7 translucent/blurred effect of the navigation bar is not working. I used the following code for iOS7 theme effect.
self.edgesForExtendedLayout = UIRectEdgeAll;
self.automaticallyAdjustsScrollViewInsets = YES;
self.extendedLayoutIncludesOpaqueBars = NO;
[[UINavigationBar appearance] setTintColor:[UIColor colorWithWhite:0.0 alpha:0.5]];
Note: In iPhone4, iOS 7.1.2 AppStore also doesn't have that effect. Whereas in iPhone 5 and other devices has the default iOS 7 theme effect on it's applications like AppStore, Itunes...etc.
Is there any way to achieve this particular UI effect in iPhone 4 , iOS 7. And your thoughts...
The iPhone 4 has this feature removed for performance reasons—if you absolutely require this functionality, look on Github for custom implementations that will work on other devices.
Just remember that Apple removed this feature for a reason, and it may be best to simply leave it be!
Try this .Let me know if it doesn't work i will give another solution
self.navigationBar.translucent = YES;

Storyboard Global Tint UITabBar Tint changed in IOS 7.1

Have I overlooked something in just using the Global Tint to set the apps overall tint?
My App that worked in IOS 7.06 has suddenly changed today after IOS 7.1 Update.
Basic Storyboard, Tab based App with Global Tint (Orange) set in storyboard in IB.
Today updated to IOS 7.1 IPhone 5S and it is showing the standard blue tint
IPhone 4 IOS 7.06, same app TabBar tint is as it should be.
Had to set as below
[[UITabBar appearance] setTintColor:[UIColor orangeColor]];
in the TabBarControllers ViewDidLoad to correct the issue.
Could it be I have something else set incorrectly?
This is a known bug in the 7.1 betas which was never fixed in the final release.
Like you, I have had the same problem and had to set it manually as a fix.
It is recommended that if you want to set a global tint color, to do so in -application:will/didFinishLaunchingWithOptions:. Alternatively, if you want specific colors for each view controller, to do so in prepareForSeque:.
Personally I have tried setting it in -viewWillAppear:animated: in my UINavigationController root view and it appears to work fine.
See the devforum thread here
Swift code that works under iOS 11 (in AppDelegate's didFinishLaunching):
application.windows[0].rootViewController?.view.tintColor = UIColor.black

setting tint color for navigation bars reverts back to iOS 6 blue color

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
}

UINavigationBar.barTintColor issues on iPhone 4

I'm customizing the barTintColor of my app's UINavigationBar and UIToolbar like this:
[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
This works on iPhone5+ and in the simulator, but when I run the app on iPhone4 (iOS7), the UINavigationBar becomes completely clear as soon as I transition to another view with pushViewController.
The same issues occur when I manipulate self.navigationController.navigationBar.barTintColor instead of UINavigationBar.appearance.barTintColor.
I can partly avoid the problem by not setting the barTintColor at all, but that approach limits me to the default barTintColor and it sometimes flips to a black background on iPhone4.
How can I reliably customize barTintColor on iPhone 4?
This issue seems to have been a bug, it has been resolved with iOS 7.0.3

UISegmentedControl Color in ios 7 showing black

I have a pretty simple looking problem though I coudn't fix it. I have a UiSegmentedControl and until ios 7 came it worked fine having an ocean color tint. When I made a UI change in the nib file that contains the segmented control and built it, the selected segment shows black color. I have another nib file that contains segmented control. I didn't touch that file and segmented control appears as old ios 6 styled ocean ine as before ehn I run app on ios 7. Any ideas why it is showing black tint??
Also, I have a sample project in which UISegmentedControl works as expected. So is there any Application Level setting that is overriding color or ignoring color set operation?
Thanks!!
I had a similar problem with an application designed to be compatible with iOS6 but being tested on an iOS7 device.
My UISegmentedControl was displayed in the correct color on the simulator, but was appearing black on the real device, and all UISegmented controls on the pages were impacted.
I just added the following line in the viewDidLoad method after reading the UI recommendation document from Apple, and it solved the problem on the real device :
[[UISegmentedControl appearance] setTintColor:[UIColor whiteColor]];
To be honnest, I have absolutely no explanation why it's working... but it's working here.

Resources