You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
When using a UIActionSheet with the usual initializer of initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:, things work as expected. However, if you pass nil for otherButtonTitles and programmatically add them later (but before presenting), it renders incorrectly.
A workaround is to call setCancelButtonIndex (and setDestructiveButtonIndex if necessary) after adding other button titles. These indexes need to be set as your total button count, even though they will actually show up at the top of the list and report an index of 0 or 1.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using a UIActionSheet with the usual initializer of initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:, things work as expected. However, if you pass nil for otherButtonTitles and programmatically add them later (but before presenting), it renders incorrectly.
A workaround is to call setCancelButtonIndex (and setDestructiveButtonIndex if necessary) after adding other button titles. These indexes need to be set as your total button count, even though they will actually show up at the top of the list and report an index of 0 or 1.
The text was updated successfully, but these errors were encountered: