I use UIActionSheetin landscape mode application in iPad. Some of my button texts do not fit the width, and they are cropped from the end. This iPhoneis processed, and my action sheet buttons fit into the frame, even if they are long. I did not understand why this is different from the iPad. Do you have ideas on how I can do something as the method adjustsFontSizeToFitWidthdoes with UILabels?
This is how I create and display my action sheet:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
for (NSString *bank in self.getBanksResponse.banks) {
[actionSheet addButtonWithTitle:bank];
}
[actionSheet showFromRect:self.bankButton.frame inView:self.view animated:YES];
[actionSheet release];
Here is a screenshot of my action sheet:

thanks in advance...
source
share