I’ve an UIAlertController to allow blocking an user from my app, and another one to report them with a bunch of reasons.
However I can’t decide which UIAlertController.Style to use.
Report action contains a 5 reasons to report, plus the cancel action. If you choose the Other reason, you get a third alert with a text field to fill in the reason. Then there is the block alert with a simple Yes/No choice.
Report alert then/or Block alert both come from UIMenu actions in a navigation bar’s UIBarButtonItem.
Following the Apple human guidelines, I should:
Use an action sheet — not an alert — to offer choices related to an intentional action.
So it seems pretty clear that I should use the action sheet style for the first Report alert, as it’s intentional and contains more than 2 actions.
But then I have to use an alert style if the user uses the Other option and has to write their reason.
And what about the Block alert than comes next in any case or from a dedicated action in the UIMenu?
To sum up:
UIBarButtonItem -> UIMenu -> Report & Block UIActions -> 5 Report reasons / Yes or No for Block
Block handler can be independent, but it is also called if any report reason is selected
If Other report reason is selected, an alert with text field is initially shown to specify the reason
I’m confused, which style should I use for all 3 of them?
Selecting any option will automatically load the page