Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Add image to UIAlertController -> UIAlertAction

$
0
0

Hello,
I think it's possible but couldnt find any sample.
I create a menü like this

  1. UIAlertController actionSheetAlert = UIAlertController.Create("Menu", null, UIAlertControllerStyle.ActionSheet);
  2. actionSheetAlert.AddAction(UIAlertAction.Create("option 1"), UIAlertActionStyle.Default, (action) => Console.WriteLine("Item one pressed.")));
  3. // Display the menu
  4. this.PresentViewController(actionSheetAlert, true, null);

How can add images left to item titles?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>