Latest 0.0.3
Homepage https://github.com/swifty-iOS/MBPickerView
License MIT
Platforms ios 9.0
Authors

This is horizontal picker view similar to native iOS UIPickerPicker with a lot of customisation. It has advance delegates to manage all event of MBPickerView. You can also pass custom UIView to the picker.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate MBPickerView into your Xcode project using CocoaPods, specify it in your Podfile:

target '<Your Target Name>' do
    pod 'MBPickerView'
end

Then, run the following command:

$ pod install

How to Use

It is very simple and easy to use. It is having similar delegate and dataSource as UIPickerView. To know more please see MBPickerViewDelegate and MBPickerViewDataSource.

Customization

You can customize Picker view title (title Color and Font) PickerTitleAttributes for selected and deselected state by setting MBPickerViewTitleAttribute to picker view. You can also adjust item padding scaling by setting itemPadingScale.

Set your data itemPadingScale

pickerView.itemPadingScale = 1.3 // your scale between [0 - item count]

iPhone

Image Image Image Image

iPad

Image

Licence

MIT

Latest podspec

{
    "name": "MBPickerView",
    "version": "0.0.3",
    "summary": "MBPickerView help you to creat Horizontal Picker View similar ot UIPcikerView",
    "homepage": "https://github.com/swifty-iOS/MBPickerView",
    "license": "MIT",
    "authors": {
        "Swifty-iOS": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/swifty-iOS/MBPickerView.git",
        "tag": "0.0.3"
    },
    "source_files": "Source/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This