Avoid UIDatePicker transparency in iOS7 Avoid UIDatePicker transparency in iOS7 ios ios

Avoid UIDatePicker transparency in iOS7


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