UIActionSheet sends wrong button index when using table view
| Originator: | nikolai.ruhe | ||
| Number: | rdar://11361874 | Date Originated: | 02-May-2012 10:27 AM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 5.1 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When UIActionSheet displays buttons in a scrollable table view the returned button index is off by one. Presentation in a table view happens due to number of buttons, more often in portrait mode. The bug happens when the action sheet is constructed via `initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:` constructor, specifying a cancel button title and no other buttons. After that, several buttons are added using `addButtonWithTitle:` Steps to Reproduce: Create an action sheet on an iPhone with five buttons. Hold the iPhone in portrait orientation. Show the action sheet and tap a button. Expected Results: Get the correct button index in `actionSheet:clickedButtonAtIndex:` Actual Results: Got the wrong button index.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!