IOS, How to add a custom SelectionIndicator to a UIPickerView?
问题 I want to add a checkmark instead of the default SelectionIndicator for UIPickerView. I am trying to add an image as subview UIImageView * checkMark = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 102, 13, 13)] autorelease]; [checkMark setImage:[UIImage imageNamed:@"pickerChechmark.png"]]; checkMark.layer.borderColor = [[UIColor redColor] CGColor]; checkMark.layer.borderWidth = 2; [picker addSubview:checkMark]; but its been added behind the picker see the following image. image 1 for x =0