Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jsnuff1

macrumors 6502a
Original poster
Oct 4, 2003
730
340
NY
Do picker views only come in on standard size? Id like to change the height of on of my pickers because it currenty takes up half the screen, but when i make my own frame for it its comes out all messed up. Does this code look wrong?

CGSize temp;
CGPoint temp2;
CGRect temp3;

temp2.x = 0;
temp2.y = 0;
temp.height= 160;
temp.width=360;
temp3.origin = temp2;
temp3.size = temp;

myPickerView = [[UIPickerView alloc] initWithFrame:temp3];
myPickerView.frame = [self pickerFrameWithSize:temp];
 

ppilone

macrumors 6502
Jan 20, 2008
361
0
I believe the UIPickerView has a set height and width. You can change the size of the components and rows, but not the frame of the UIPickerView itself.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.