Title: UIPickerview in iphone
Tags: iphone-sdk-3.0;xcode3.2
Question: How to reduce the size of UIPickerview in a subView? I am reducing the CGRectMake(120, 20, 60,25). But it appears in the normal size. What i do now?

Some One help me.

Thanks in Advance.



Here is another answer: Use the delegate method below

```- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component
```

This will resolve the issue.You can also refer the same from apple documentation.


Cheers

Aditya


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:12/30/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<iphone-sdk-3.0><xcode3.2>', 'Title': 'UIPickerview in iphone', 'ViewCount': 92, 'id': 4560732, 'user_AboutMe': None, 'user_AccountId': 265928.0, 'user_DisplayName': 'user553215', 'user_Reputation': 1.0, 'user_Views': 7.0, 'user_id': 553215.0}}