Search code examples
iphoneioscocoa-touchcustomdialog

iOS custom dialog box


I'm working on an iPhone app in which I'm trying to create a card which will be shown on top of a view and when a touch event happens outside its boundaries, the card needs to be closed. What is the best way of doing it. The card will have a custom background image, a UIWebview(which contains a question) and 2 buttons - yes and no.

Any suggestion is highly appreciated. Thanks in advance.


Solution

  • You can take a look at TSAlertView. It's a replacement for UIAlertView.

    You may inspire yourself from that example to make one yourself with your specifications.