UIAlertController customization

前端 未结 2 1442
野趣味
野趣味 2021-01-28 12:53

I\'m trying to customize my UIAlertController with a dark theme.
I\'m aiming for something like this

I\'m trying different things, including the suggestion I found

相关标签:
2条回答
  • 2021-01-28 13:09

    If you're still struggling with this, I have a library that may be of help. It lets you create custom action sheets. It has a bunch of built-in types and can be extended and restyled as well.

    0 讨论(0)
  • 2021-01-28 13:22

    Any ideas?

    Yes. Give up. An alert controller is very limited, and you should stick to what it does. But it is just a presented view controller, and nothing stops you from making your own presented view controller that looks and acts just like an alert, and since it is your view controller, it's your view and you can do whatever you like.

    0 讨论(0)
提交回复
热议问题