STPopup
STPopup
provides STPopupController
, which works just like UINavigationController
in popup style, for both iPhone and iPad. It's written in Objective-C and compatible with Swift.
Features:
- Push/Pop view controller into/out of
STPopupController
just likeUINavigationController
. - Set navigation items through
self.navigationItem
just like using aUINavigationController
. - Support both "Form Sheet" and "Bottom Sheet" style.
- Work well with storyboard(including segue).
- Customize UI by using
UIAppearance
. - Customizable popup transition style.
- Auto-reposition of popup view when keyboard shows up, make sure your
UITextField
/UITextView
won't be covered by the keyboard. - Drag navigation bar to dismiss popup view.
- Support both portrait and landscape orientation in iPhone and iPad.
- iOS 7+.
- Compatible with Swift.
Use Cases
Get Started
CocoaPods
Carthage
Import header file
Objective-C
Swift
Initialize and present STPopupController
Objective-C
Swift
Set content size in view controller
Objective-C
Swift
Set content size of view controller which is loaded from Storyboard
Set content size in storyboard or in awakeFromNib
.
Push, pop and dismiss view controllers
Objective-C
Swift
Bottom sheet style
Objective-C
Swift
Customize popup transition style
Objective-C
Swift
Blur background
Objective-C
Swift
Action of tapping on area outside of popup
Objective-C
Swift
Customize UI
Objective-C
Swift
Auto-reposition when keyboard is showing up
This is default behavior.
Drag to dismiss
This is default behavior.
Handle orientation change
This is default behavior.
Please checkout the example project for more details.