If I remember correctly from doing something like this in the path, the
important thing in the below code is you are providing a custom image for the
nav bar to draw as its background, instead of doing a blur effect. The image
you supply happens to be empty so nothing is drawn in the end, and yo
Hi David. I hate to tell you, your code doesn’t work.
The old UINavigationBar background that I’m trying to remove is still there
when I use your code over what I stumbled across.
Something in the code below does remove the background image.
self.navigationController!.navigationBar.i
> On Jan 28, 2022, at 11:50 AM, Alex Zavatone wrote:
>
> Awesome. Thank you, David.
>
>
> I stumbled across this too while going through Apple documentation. What’s
> scary is that I have no idea why it works.
>
> self.navigationController!.navigationBar.barStyle = .default
>
Awesome. Thank you, David.
I stumbled across this too while going through Apple documentation. What’s
scary is that I have no idea why it works.
self.navigationController!.navigationBar.barStyle = .default
self.navigationController!.navigationBar.isTranslucent = false
UINavigationBarAppearance *appearance = [UINavigationBarAppearance new];
[appearance configureWithTransparentBackground];
navigationItem.standardAppearance = appearance;
Thats the simplest per-item way to do it. This does imply you adopt the new
appearance APIs introduced in iOS 13.
> On Jan 28,
Hi there. I’m in the middle of trying to find out how the hell to remove a
background from a UINavigationBar and it’s not easy. You’d think that you
could get a UInavigationBar.navigationitem.background and remove it from a
superview or set its alpha to 0, but it’s not that easy.
Does anyone