CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Josh Justice.
Depends on: | |
NBHighlightButton | ~> 1.0.1 |
NBMiniModal | ~> 1.0 |
UIView+PartialRoundedCorner | ~> 1.0 |
A picker inside a mini modal window
The demo/ folder contains a demo project showing NBPickerModal in use. Open and run it.
In your view controller .h file, import "UIViewController+MiniModal.h" and conform to NBMiniModalDelegate.
In your view controller .m file, imported "NBPickerModal.h". Alloc and init a NBPickerModal, then on your view controller call [self displayMiniModal:modal]. Implement the following method to handle when a value is picked:
-(void)completedMiniModal:(NBMiniModal *)modal
You can cast that NBMiniModal to a NBPickerModal, and retrieve the value from it.
This class has been tested back to iOS 6.0.
This class is implemented by adding a UIPickerView into a NBMiniModal.
This code is released under the MIT License. See the LICENSE file for details.