Reputation: 6471
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
How to solve this issue.Please help me
Upvotes: 2
Views: 883
Reputation: 12594
Use -(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
method, instead of using titleForRow ..
method
Here create your custom view, with label and bottomline(UIView- as line) and return that view.
you will have required effect by this step.
Upvotes: 1