浏览代码

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];