如本图所示,您可以看到,我面临的UIPickerView.There问题是顶部的gap。要删除该gap.Anyone,请了解this.Any帮助的解决方案是appreciated.Thank much appreciated.Thank you shown

发布于 2013-02-06 18:10:37
试着这样做:
[Picker addTarget:self action:@selectorAction) forControlEvents:UIControlEventValueChanged];
UIView *view = [[Picker subviews] objectAtIndex:0];
[view setBackgroundColor:[UIColor clearColor]];
[[[view subviews] objectAtIndex:0] setHidden:YES];
[[[view subviews] lastObject] setHidden:YES];您可以将选取器添加到视图中,并从中创建一个子视图。
发布于 2013-02-06 18:04:13
只有这样才能避免UIPickerView的gap顶部
更改拾取器的边框。就像这样。
smallerPicker = [[UIPickerView alloc] init];
smallerPicker.frame = CGRectMake(0.0, 0.0, 320.0, 165.0)或
smallerPicker.transform = CGAffineTransformMakeScale(.5, 0.5);如更改选取器的比例
https://stackoverflow.com/questions/14726167
复制相似问题