فهرست منبع

UIPickerView hide the selection indicator

Marino Faggiana 8 سال پیش
والد
کامیت
93a803ba8d
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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];