Browse Source

UIPickerView hide the selection indicator

Marino Faggiana 8 years ago
parent
commit
93a803ba8d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      iOSClient/Library/XLForm/XL/Cell/XLFormPickerCell.m

+ 3 - 0
iOSClient/Library/XLForm/XL/Cell/XLFormPickerCell.m

@@ -98,6 +98,9 @@
 //TWS
 - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
 {
+    [[pickerView.subviews objectAtIndex:1] setHidden:TRUE];
+    [[pickerView.subviews objectAtIndex:2] setHidden:TRUE];
+    
     UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, pickerView.frame.size.width, 50)];
     label.backgroundColor = [UIColor clearColor];
     label.textColor = [UIColor blackColor];