UIAlertController is an opaque class. That kind of customization isn't supported. If you want, you can try to roll your own, or find an open source alternative.
I've tried hacking it by traversing the view hierarchy and finding labels, but it didn't seem to work. I also tested with UIAppearance, but labels don't respond to alignment changes.
UIAlertController
is an opaque class. That kind of customization isn't supported. If you want, you can try to roll your own, or find an open source alternative.I've tried hacking it by traversing the view hierarchy and finding labels, but it didn't seem to work. I also tested with
UIAppearance
, but labels don't respond to alignment changes.My sample code (Swift) is on GitHub.
Some open source alternatives: