cezarywojcik / CWPopup

CWPopup category to present popup view controllers
MIT License
289 stars 62 forks source link

add blur navigationBar add handle tap blurView #12

Open bumaociyuan opened 10 years ago

bumaociyuan commented 10 years ago

add blur navigationBar add handle tap blurView

b-raines commented 10 years ago

For some reason this doesn't seem to be blurring the navBar for me.

vicc commented 10 years ago

@b-raines I haven't tested this out yet, but it looks like it could be due to a result of the blurView being added to a subview of your navigationController's view (thus always appearing below your navBar). Try searching for the following line in the .m file

[[self.class zx_topViewController].navigationController.view addSubview:blurView];

and change it to:

[[self.class zx_topViewController].navigationController.view.window addSubview:blurView];

This should add it to its window.