iOS 7.1 UINavigationBar Image

一笑奈何 提交于 2019-12-12 12:33:01

问题


So prior to iOS 7.1 I was setting the background image in my app UINavigation Bar via UI Appearance like so.

[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"image-name"] forBarMetrics:UIBarMetricsDefault];

It was working fine and the content was getting blurred properly when behind it. Now the content is not blurred at all the navigation bar is just transparent. If I remove the image and set just the navigation bar tintColor it will blur the content correctly. Anyone have any ideas on how I can put a custom image in the NavigationBar and still have it blur the content behind it.

来源:https://stackoverflow.com/questions/22368488/ios-7-1-uinavigationbar-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!