TimCinel/ActionSheetPicker — Issue #33: ActionSheetPicker width on iPad during a landscape orientation
Author: takdol
Created: 2012-02-09 03:42:39+00:00
State: open

First I would like to say that this ActionSheetPicker saved me a LOT of time in creating a custom picker. Thank you so much Tim and the other devs who have touched this. So i thought I might do my part in contributing to the betterment of this custom control.

I'm currently using this in a universal app I'm working on and I've noticed that when you show the ActionSheetPicker on the iPad with a landscape orientation, the ActionSheetPicker is stretched. Now I dug a little in the source code and here's what I've updated in the file AbstractActionSheetPicker.m:

- (CGSize)viewSize {
if (![self isViewPortrait]) {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
return CGSizeMake(480, 320);
} else {
return CGSizeMake(320, 480);
}
}
return CGSizeMake(320, 480);
}