我正在创建一个像标签栏一样的视图。为此,我正在设置tintColor:UIView设置色调颜色
UIView *bottomTab = [[UIView alloc]initWithFrame:CGRectMake(0,SCREEN_HEIGHT-yVal-bottomBarButtonHeight,SCREEN_WIDTH,75)];
//bottomTab.backgroundColor = [UIColor blackColor];
bottomTab.tintColor = [UIColor blackColor];
[self.view addSubview:bottomTab];
[self.view bringSubviewToFront:bottomTab];
但是我无法看到视图。但是,当我取消注释背景颜色代码行时,它显示但没有色调效果。
我该怎么做到这一点。
[UIView的外观] setTintColor:[的UIColor绿彩]; – Rushabh 2014-11-06 10:42:49
如何设置视图? – Nitish 2014-11-06 12:37:28