Am using UIAlertController with UIAlertAction as buttons in it. I would like to add image to the button(UIAlertAction). Any help in this regard will be appreciable.
Asked
Active
Viewed 1,072 times
2
-
1http://stackoverflow.com/questions/26347085/add-image-to-uialertaction-in-uialertcontroller – Saurabh Prajapati Nov 12 '14 at 10:02
-
Thank You Saurabh Prajapati. I have came across the same link before, but it didn't me help me out. That's why I posted again. Helping with some other solution will be appreciable. Thank you – GJDK Nov 12 '14 at 10:10
1 Answers
0
You can add an image/icon:
let action = UIAlertAction(...)
action.setValue(UIImage(named: "image-name", forKey: "image")

robahl
- 559
- 1
- 6
- 13