For the accepted solution on this thread: How do you shrink a UIPickerView on the iPhone?
I can successfully re-size the picker. However I have TWO pickers in my controller. When I carry out the exercise for both pickers, they are re-sized, but when adding the transformed UIView to the main view, one of the transformed sub-views loses touch input. It's always the sub-view that is added FIRST that loses the touch input. how can i fix this?
Here is the code:
CGSize providerPickerSize = [providerPickerOutlet sizeThatFits:CGSizeZero];
CGSize amountPickerSize = [amountPickerOutlet sizeThatFits:CGSizeZero];
UIView *providerPickerTransformView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, providerPickerSize.width, providerPickerSize.height)];
UIView *amountPickerTransformView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, amountPickerSize.width, amountPickerSize.height)];
providerPickerTransformView.transform = CGAffineTransformMakeScale(0.75f, 0.75f);
amountPickerTransformView.transform = CGAffineTransformMakeScale(0.75f, 0.75f);
[providerPickerTransformView addSubview:providerPickerOutlet];
[amountPickerTransformView addSubview:amountPickerOutlet];
[self.view addSubview:amountPickerTransformView];
[self.view addSubview:providerPickerTransformView];
Here the amountPickerTransformView loses touch input.
Using XCode 4.3, iOS 5 with storyboard.