I build my project in Xcode 8. UIPickerView separator lines are not visible in iOS 10 simulator and the devices, but works fine on iOS 9.3 devices and simulator. I tried to adju
I have faced the same issue in iOS10, too. Here is my problem:
And I solved this problem by:
self.pickerView.backgroundColor = COLOR_DEDEDE;
self.pickerView.showsSelectionIndicator = YES;
for (UIView *view in self.pickerView.subviews) {
if (view.bounds.size.height < 2.0f && view.backgroundColor == nil) {
view.backgroundColor = PICK_Line_COLOR; // line color
}
}
this code mush be called after method:
[self.view addSubview:pickeView];
The final result:
it works in my project. Hope it helps to you.