---
title: "How to set background color of uipickerview in iOS?"  
description: "How to set background color of uipickerview in iOS?"  
author: "Anonymous User"  
published: 2015-12-22  
updated: 2015-12-22  
canonical: https://www.mindstick.com/forum/33769/how-to-set-background-color-of-uipickerview-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to set background color of uipickerview in iOS?

I have created a UIPickerView and added a UIView on that picker [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view), [now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) I want to change [background color](https://www.mindstick.com/forum/12937/how-to-style-togglebutton-so-that-the-background-color-is-white) of uipickerview.\
Can [anyone give me](https://answers.mindstick.com/qa/41194/can-anyone-give-me-some-high-and-low-points-of-each-of-the-four-first-presidential-administrations) the suggestion how to do it.!

## Replies

### Reply by Tarun Kumar

If you want to change the [background](https://www.mindstick.com/articles/65/how-to-change-background-color-of-tab-control-in-c-sharp) [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) of picker view, create a custom frame using CGRect class and assign it on the pickerview. and after that you can set the backgroundColor.

```
CGRect rect = CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, 196);pickerView = [[[UIView alloc] initWithFrame:rect] autorelease];pickerView.backgroundColor = [UIColor greyColor];[self.view addSubview:pickerView];[pickerView addSubview:picker];[self.view addSubview:picker];
```


---

Original Source: https://www.mindstick.com/forum/33769/how-to-set-background-color-of-uipickerview-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
