kmcgill88 / McPicker-iOS

McPicker is a customizable, closure driven UIPickerView drop-in solution with animations that is rotation ready.
MIT License
213 stars 43 forks source link

How can I make my McPickerView Multiline in swift? #57

Open AndrewFakher opened 5 years ago

AndrewFakher commented 5 years ago

I have an McPickerView how can I make it multiline? I have some long text.

Here is my code :

    let customLabel = UILabel()
        customLabel.textAlignment = .center
        customLabel.lineBreakMode = .byWordWrapping
        customLabel.numberOfLines = 0
        customLabel.sizeToFit()
        mcPickerView.label = customLabel

but nothing changed it still one single line.