Hello
I am trying to resize the UIPickerView as below dimension are given, but it is not working at all as I want it to be visible. Here datePicker is UIPickerView which is declared properly and synthesized too, now what should I do?
datePicker = [[UIPickerView alloc] initWithFrame:CGRectMake(100, 200, 100, 150)];
datePicker.delegate = self;
datePicker.showsSelectionIndicator = YES;
[self.view addSubview:datePicker];
If you are not getting what exactly I mean, you can ask me again,,,
CGAffineTransform s0 = CGAffineTransformMakeScale(scaleFactor, scaleFactor); CGAffineTransform t1 = CGAffineTransformMakeTranslation(x,y); myPickerView.transform = CGAffineTransformConcat(s0, t1);You can use 0.5 as scalefactor to resize the pickerview to 50%, and change x and y to appropriate values to make pickerview to appear in desired position.
Note: import QuartzCore framework.