14 ~ 16 個のコンポーネントを含む UIPickerView を作成する必要があります。すべてが初期化され、うまく機能しますが、右側に奇妙な黒いバーが表示され (画像を参照)、すでに狭いスペースが無駄になっています。
それを取り除く方法はありますか?コンポーネント間のすべての黒いスペースとコンポーネント内の灰色の線を取り除く方法もありますか?
ありがとうございました。
(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:
(NSInteger)component reusingView:(UIView *)view
{
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
[label setText:[numArray objectAtIndex:row]];
[label setTextAlignment:UITextAlignmentCenter];
[label setFont:[UIFont boldSystemFontOfSize:14]];
[label setBackgroundColor:[UIColor clearColor]];
return label;
}