Apple has added a tiny line over the tabBar in iOS 7 which is supposed to work as a shadow or fade between the tabBar and the UI
Since I am using a custom-made tabBar the line is quite irritating. How do you remove it? Please tell me it is possible, otherwise I need to redesign my whole app lol....
/ Regards
*Edit
Sloved my problem with the following line of code:
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
Swift
Nice simple solution:
Write this below code in your custom tab bar class. Then it will hide horizontal shadow line.
Objective C
Add the following code in
AppDelegate.m
didFinishLaunchingWithOptions:
methodThese code works pretty well for me (I don't really have background image for tab bar):
And I use these code to add a frame too:
Hope that helps.
In my case I also needed to set a different shadow, in the end the only thing that worked while also setting a custom shadow was to add a single-point high UIView 1 point above the tab bar:
now you can use it, with this line:
In iOS 8 the top border can be removed by setting the tab bar style to black in the inspector.