Search code examples
iosuiviewxamarin.iosuiactionsheetuiactionsheetdelegate

How can I insert images next to text inside a UIActionSheet?


I was trying to create a UIActionSheet in a Xamarin.ios app, where there is an image and text in each row. Is there a way we could do that?

I've followed the sample provided by Alanc Liu in this link: For "actionSheetAlert", what's after (action) =>.

This is just text, however. How can I replace the string with a combination of image + string?

Screenshot attached to clarify the requirement... Need to add custom images in place of all those smiley faces.

Thank you.

enter image description here


Solution

  • This isn't possible with a stock UIAlertController/UIAlertAction. You would need to create a custom view controller to get this functionality.