I'm developing an iOS app with a table view. The navigationbar in the app has an gradient image as a background.
However, as you can see from the picture, while the navigationbar itself is opaque, the statusbar is semi transparent. The content of the tableview is shown through the statusbar when scrolling, while the navigationbar itself is opaque.
I've tried to set the Translucent-property of the navigationbar to false. This makes the statusbar opaque, but it messes up my constraints, so I cannot use it.
Any idea how to fix this?
Related
I currently have the bottom safe area's color set as blue by setting the view's background color as UIColor.blue
However, the problem is when the keyboard comes up as a first responder, I still get a slight tint of that blue coming through from that background. Is there a way to make this translucent keyboard not happen?
I want to place image over navigation bar, but partially on it an partially on content view. So I set UINavigationBar.layer.zPostion to -1 and it works perfectly well especially on iPhones. But I also have background UIImageView with UIImage and it should be placed beneath navigation bar. So I tried to set it zPosition to -2 or -10 it doesn't work and it is seen through navigation bar somehow. I even tried to place another UIView above Background UIImageView and beneath NavigationBar to be able to mask/hide this image and have colour like navigation bar. But it doesn't work. If i use UIView with some color instead of ImageView then it works correctly.
I've forgotten to add
clipToBounds = true
This solves the problem
I have a UINavigationBar (not in a UINavigationController) in my view hierarchy, but it sometimes does not draw its translucent background correctly. In the image below, I have a navigation bar with barTintColor = [UIColor redColor] and content underneath it. For some reason, the left and right sides are transparent. Why is this the case, and how can I fix this? (I also think I'm having more of this after switching to iOS 7.1.)
I have a iPad master/detail storyboard made up for iOS5/6 where the popoverview that appears in landscape mode had a dark grey translucent background Like this. After the last cell in the tableview on the master popover controller, the detail view underneath is showing through the dark grey background.
Rendering in iOS7 is corrupted, just shows 2 grey bars on either side and a big hole in the middle.
If I set the View's background colour like this
self.view.backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.5];
I get a transparent grey colour but the ugly opaque grey bars are still there instead of the feathered edges that were there in iOS6.
Ideally it would look great as the new blurred out translucency like the iOS7 translucent navigation bar etc.
Also, the png files used for the cell backgrounds have transparency in iOS6..
..but have ugly white background with 1px black border in iOS7. This is with the Image, the Cell, The Cell's content and the TableView all with background colour set to 'clear colour' in IB. Help!!
As the title states, I haven't been successful in removing the black background in the UITabBar.
I know it is possible to add a subview on top of it. But I want it to be transparent so if I add a transparent subview on top of it, it will just have the underlying black color.
Setting the tintColor made me able to change the color of the UITabBar, but when I change it to clearColor it will just be black again.
Anybody know how to remove the underlying image or color so it will be transparent?
When they added the tintColor property in iOS 5, they also added a number of other appearance-customization functionality to UITabBar. See, backgroundImage and selectionIndicatorImage, and the finishedSelectedImage and finishedUnselectedImage properties of UITabBarItem.