UIPickerview filling the screen

Posted by Fischer on Stack Overflow See other posts from Stack Overflow or by Fischer
Published on 2012-11-13T16:51:26Z Indexed on 2012/11/13 17:00 UTC
Read the original article Hit count: 412

Filed under:
|
|
|

I want an UIPickerView that fills all the screen. This is the code i have ...

pickerView1 = [[UIPickerView alloc] init];
[pickerView1 setDelegate: self];
[pickerView1 setFrame: CGRectMake(0,0, 480, 320)];
[self.view addSubview: pickerView1];

This just fills the width, not the height, and I get this message in the output: " invalid height value 320.0 pinned to 216.0 "

Why ? How can i adjust the height of the picker ???

© Stack Overflow or respective owner

Related posts about ios

Related posts about height