0

enter image description here

As you can see ,the map view should display with blur effect. I tried the UIBlurEffect, stackoverflow suggestions and many blur effect libraries but I not able achieve the actual effect.How can I achieve the exact blur effect , can anybody help me to fix it out ? Thanks,

Edit:

[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"blurImage" ] forBarMetrics:UIBarMetricsDefault];

[self.navigationController.navigationBar setBackgroundColor:[UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.0f]];

[self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];

While I implement the above code it looks like the below image,enter image description here

What I'm doing wrong?

iniyan
  • 131
  • 3
  • 15
  • do u need blur on map or on navigation bar ? – Teja Nandamuri Dec 04 '15 at 14:07
  • show us what you tried, and how is it different than what you want to achieve? – Teja Nandamuri Dec 04 '15 at 14:07
  • did u try this http://stackoverflow.com/questions/32955102/set-a-faded-darker-background-to-a-uinavigationbar/32956423#32956423 ? – Teja Nandamuri Dec 04 '15 at 14:10
  • Yes, but without background image is there any possibility ? – iniyan Dec 04 '15 at 14:13
  • that is the simplest way to do, I am not sure if there is a way add a gradient to a UIBlueEffect. – Teja Nandamuri Dec 04 '15 at 14:15
  • as far as i know, blur effect is unique, and we cant customise it!!! I mean in the sense change its opacity!!! – Teja Nandamuri Dec 04 '15 at 14:15
  • you can use UIVisualEffectView for that and then play with the size of the view which you are adding as subview. you can use vibrancy or not in the subview depending to what you want to achieve. let me know if you need any sample codes. here is the link to the apple doc's https://developer.apple.com/library/tvos/documentation/UIKit/Reference/UIVisualEffectView/index.html – Adrian P Dec 04 '15 at 15:46
  • @Mr.T I added the navigationbar background image to achieve the transparent but It always looks as white background. – iniyan Dec 15 '15 at 06:36
  • what kind of image did u add ? does that image have transparency and is of type png ? – Teja Nandamuri Dec 15 '15 at 13:17

0 Answers0