Explorar o código

UIPickerView hide the selection indicator

Marino Faggiana %!s(int64=8) %!d(string=hai) anos
pai
achega
93a803ba8d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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];