UIPickView 去掉选择框

UIPickView 去掉选择框

UIPickerView
//去掉选择框

    if ([[UIDevice currentDevice].systemVersion floatValue] < 14.0) {
        if (_pickView.subviews.count > 2) {
            ((UIView *)[_pickView.subviews objectAtIndex:1]).backgroundColor = [UIColor fl_colorWithHexString:@"#FFFFFF" alpha:0.1];
                ((UIView *)[_pickView.subviews objectAtIndex:2]).backgroundColor = [UIColor fl_colorWithHexString:@"#FFFFFF" alpha:0.1];
        }
    }else{
        if (_pickView.subviews.count > 1) {
            ((UIView *)[_pickView.subviews objectAtIndex:1]).backgroundColor = [UIColor fl_colorWithHexString:@"#FFFFFF" alpha:0.1];
        }
    }

你可能感兴趣的:(UIPickView 去掉选择框)