Avoid UIDatePicker transparency in iOS7

陌路散爱 提交于 2019-12-03 01:51:03
Maul

Just change background color of your date picker

datepicker.backgroundColor = [UIColor yourcolor];

you can add a uiview with any color behind the uidatepicker. it will work for you.

[UIView appearanceWhenContainedIn:[UITableView class], [UIDatePicker class], nil].backgroundColor =[UIColor colorWithWhite:1 alpha:0];
pickerView.backgroundColor=[UIColor whiteColor];
anotherView.backgroundColor=[UIColor whiteColor];//Another view on which you subview picker
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!