UIPickerView选中的值被黑色标签覆盖

时间:2015-05-23 10:56:12

标签: ios uiimageview uipickerview

我正在开发iOS原生应用。它的设计包含UIPickerView和UIImageView(在下面的屏幕截图中显示)放在它上面。

UIPickerSkin

这应该显示UIPickerView,并在其上放置图像。但是,我在PickerView上获得黑色色带而不是浅灰色。

Simulator Screenshot

以下是我使用过的代码

    self.objPickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0, (screenHeight-statusBarFrame.size.height-216.0),screenWidth,216.0)];
    self.pickerSkin = [[UIImageView alloc] initWithFrame:self.objPickerView.frame];               

    [self.objScrollView setBackgroundColor:[UIColor clearColor]];
    [self.objPickerView setBackgroundColor:[UIColor clearColor]];

    [self.pickerSkin setImage:[UIImage imageNamed:@"PickerSkinColor"]];
    [self.objScrollView addSubview:self.objPickerView];
    [self.objScrollView addSubview:self.pickerSkin];

我哪里错了?

0 个答案:

没有答案