Possible Duplicate:
How to change UIPickerView height
I am writing an application. In that application the pickerview height is much smaller than normal size. How do I to decrease the uipickerview height?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Interface Builder doesn’t let you change the height of a UIPickerView (only the width). The default size of the view is 320×216 but you can change the height manually by opening the parent view’s xib (just a big XML file that defines the interface) file and looking for the line:
Then within that XML node you’ll see the line (where 93 is the vertical y position):
Just change that 216 to something smaller (in my case, I needed it to be about 150) and recompile! Now – re-open Interface builder and you’ll see the change reflected in your interface!
I’ve found that Apple makes things extremely difficult to do if they don’t really want you doing it, however, it’s usually possible.