1

iTunes Image

I am able to align image to right but not able to set the label of action sheet to left. I have used paragraph style and tried to align it but it doesn't act like a normal button and not able add image to it.

This is what I am able to achieve

. In UIAlertController I am NOT able to access label through subviews. Can anyone suggest any way to achieve this.

jklee
  • 2,198
  • 2
  • 15
  • 25
KiranMayee Maddi
  • 301
  • 1
  • 12

1 Answers1

0

I use this.

let action = UIAlertAction(title: "Add to a Playlist", style: .default, handler: nil)
action.setValue((Your Alignment), forKey: "_titleTextAlignment")
action.setValue((Your Image), forKey: "_image")