CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | Apache 2 |
| ReleasedLast Release | Sep 2016 |
Maintained by Carson Perrotti.
CNPPopupController is a simple and versatile class for presenting a custom popup in a variety of fashions. It includes a many options for controlling how your popup appears and behaves.
Please feel free to contribute to this project, open issues, make suggestions and submit pull-requests. If you use this project in your app, let me know. I'd love to see what you do with it.
Available in CocoaPods
pod 'CNPPopupController'
(See sample Xcode project in /CNPPopupControllerExample)
Create a popup with custom animations and behaviors. Customizations can also be accessed via properties on the CNPPopupTheme instance:
- (instancetype)initWithContents:(NSArray *)contents;
contents only accepts an array of UIView objects.
- (void)presentPopupControllerAnimated:(BOOL)flag;
- (void)dismissPopupControllerAnimated:(BOOL)flag;
A CNPPopupTheme instance can be created and assigned to the theme property of a CNPPopupController instance.
@property (nonatomic, strong) UIColor *backgroundColor;
@property (nonatomic, assign) CGFloat cornerRadius;
@property (nonatomic, assign) UIEdgeInsets popupContentInsets;
@property (nonatomic, assign) CNPPopupStyle popupStyle;
@property (nonatomic, assign) CNPPopupPresentationStyle presentationStyle;
@property (nonatomic, assign) CNPPopupMaskType maskType;
@property (nonatomic, assign) BOOL dismissesOppositeDirection;
@property (nonatomic, assign) BOOL shouldDismissOnBackgroundTouch;
@property (nonatomic, assign) BOOL movesAboveKeyboard;
@property (nonatomic, assign) CGFloat contentVerticalPadding;
@property (nonatomic, assign) CGFloat maxPopupWidth;
@property (nonatomic, assign) CGFloat animationDuration;
CNPPopupController works on iOS 6 - iOS 10
CNPPopupController was created by Carson Perrotti
September 15, 2016 v0.3.3
July 14, 2016 v0.3.2
duplicate symbols errors.September 13, 2015 v0.3.1
movesAboveKeyboard to YES in the default theme.September 11, 2015 v0.3.0
August 30, 2015 v0.2.3
August 16, 2015 v0.2.2
June 14th, 2015 v0.2.0