ZFPopView is a UIAlertView replacement similar to the style in iOS 7 but with a block based API and the ability to customise the styling and add custom views.
- Simple block syntax instead of delegates
- Animations that match UIAlertView in iOS 7
- Fully customisable
- Add your own UIView beneath the title
Add the following to your CocoaPods Podfile
pod 'ZFPopView', '~> 0.0.7'
or clone as a git submodule,
or just copy ZFPopView.h
and .m
into your project.
See ZFPopView.h for the complete API.
[ZFPopView popWithTitle:@"Feng is naive and simple"
message:@"Feng's wife, however, is a beauty....."
contentView:tmpView];
- Add style that matches iOS 7 exactly
- Ability to dynamically specify the styling of PopView: default/dark
- Allow usage using the same API methods as UIAlertView and delegate.
ZFPopView is available under the MIT license. See the LICENSE file for more info.