2

I am using swift with xcode7.3.1.I would like to add separator lines for each row in UIPickerView.I would like to implement UIPickerview as the following screenshot

enter image description here

How to solve this issue.Please help me

IKKA
  • 6,297
  • 7
  • 50
  • 88

1 Answers1

1
  1. Use -(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view method, instead of using titleForRow ..method

  2. Here create your custom view, with label and bottomline(UIView- as line) and return that view.

you will have required effect by this step.

Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81