Display fullscreen alerts in iOS swift

1.2k views Asked by At

How can I show full screen AlertViews in Swift. What I have done is added a UIView(custom alert view) on top of View controller in storyboard. Is there any other way to do it?

enter image description here

1

There are 1 answers

0
Sky Shadow On

It is better to create a xib file that contains your custom alert view and subclass it to UIView for custom properties and methods. And just programatically show it in your view controller.

You can check this out on how to implement it.

https://stackoverflow.com/a/39586736/11138557

Happy coding :D