Creating a custom dialog box like this in iOS?

user5046034 picture user5046034 · Oct 10, 2015 · Viewed 7.2k times · Source

enter image description here

I'm trying to create a dialog box like this, but have failed in every attempt. This box overrides the rest of the content, has two textField and a choice box. Could someone help me? I use a dynamic programming to create the dialog box? or I use a new ViewController and call it via code? Where do I start?

Answer

travelnsam picture travelnsam · Oct 10, 2015

If I understand you correctly, and the blur effect is necessary, then the standard UIAlertController won't let you do that. You could achieve this affect by 1.) creating a separate view controller in storyboard, 2.) add UIBlurEffect to it, 3.) add a UIView to make the 'form' and add text fields etc to that. Then, from wherever you want the view to be launched (button, etc) create the segue to this view controller and set it to 'modal'. Does this help?