What could cause a button on a UIActionSheet to "miss" on touches?

Posted by Alex Gosselin on Stack Overflow See other posts from Stack Overflow or by Alex Gosselin
Published on 2010-04-14T23:05:31Z Indexed on 2010/04/14 23:23 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I have a UIActionSheet as follows:

UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat: @"Cancel New %@? Changes will be lost.", [creator propertyName]] delegate:self cancelButtonTitle:@"Stay Here" destructiveButtonTitle:@"Discard and Close" otherButtonTitles:@"Save and Close", nil];
[sheet showInView:self.view];
[sheet release];

It creates the action sheet, The buttons display, the Destructive button is on top, cancel button is on the bottom, other button (save and close) shows up in the middle,

the top two buttons, (destructive and other) work fine, but the bottom button has a gap, so it is farther down than the other buttons. For some reason though, in order to press the button I need to touch where it would be if there was no gap. Touching the actual button doesn't work.

Sorry if this isn't super clear, has anyone encountered something like this? I don't like to whip out the "I found a bug" card too fast, maybe I'm doing something wrong here.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk