Skip to content

agustinslions/SLPickerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLPickerView

This component easily creates the entire interface and interaction of a UIPickerView in iOS applications.

You can create 2 types of components:

  • SLNumbersPickerView: component with numerical options.
  • SLTextPickerView: component with text options.

Inicialization

  • Add to your project the files SLPickerView.{h,m}
  • You need initialice the picker with a simple method like.
    [SLPickerView showNumericalPickerViewWithMaxValue:20
                                         withMinValue:3
                                      withPreSelected:[self.numberButton.currentTitle intValue]
                                      completionBlock:^(int selectedValue) {
                                          //TODO: Callback
                                      }];

TODO

  • Create podspec. Version 1.0.0
  • Create method to set frame.
  • Create method to set position in fullscreen.
    • Bottom
    • Top
    • Center
  • Create callbacks in order to set the custom view for all rows on pickerView.
  • Create new version 1.1.0
  • Properties to personalizate the screen.