我正在开发iOS原生应用。它的设计包含UIPickerView和UIImageView(在下面的屏幕截图中显示)放在它上面。
这应该显示UIPickerView,并在其上放置图像。但是,我在PickerView上获得黑色色带而不是浅灰色。
以下是我使用过的代码
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];
我哪里错了?