在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JagCesar/iOS-blur开源软件地址:https://github.com/JagCesar/iOS-blur开源编程语言:Objective-C 94.9%开源软件介绍:iOS-blurIn iOS 7 a new view is shown in several places that is transparent and has a nice blur effect. However Apple hasn't given us a public API to use this amazing view. Apple gave us some sample code at WWDC that blurs an UIImage object. It looks great, but isn't as cool as a view that blurs the views behind it in realtime. I needed this in one of my projects, so after some thinking I came up with a brilliant and simple idea. It only works for iOS 7. ScreenshotHow is it done?I simply took a UIToolbar, placed it as a subview and voila! Awesome! So, how do I use it?You just use it as any normal UIView object. I wanted it to be as simple as possible, and I think I've managed to do just that. To use it you copy JCRBlurView.h and JCRBlurView.m to your project. Make sure to import it, initialise it, set a frame and add it to your view. That's it! :)
If you prefer using Auto Layout that works great too! cocoapod? It would be SO much easier!What about using it as aJust add: LicenseiOS-blur is released under the WTFPL-license (see the LICENSE file) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论