Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS7 UIPickerView how to hide the selection indicator

How can I hide those 2 lines on the selected row?

enter image description here

like image 453
james075 Avatar asked Dec 16 '13 13:12

james075


1 Answers

[[pickerview.subviews objectAtIndex:1] setHidden:TRUE]; [[pickerview.subviews objectAtIndex:2] setHidden:TRUE]; 

Use this in titleForRow or viewForRow delegate method of the pickerView.

like image 52
motox Avatar answered Oct 02 '22 20:10

motox