How to create a custom Swift popup on iPhone

I want to implement a custom popup in an iPhone application containing buttons and tags.

One solution that I found was to simply create a hidden UIView in the same view controller ( How to create a popup window with a SWIFT image ) and then make hidden = false. I feel that this should not be the “best” way to do this, simply because I will be working with multiple interfaces in the same view controller.

Another method is to force full-screen viewing on the iPhone ( http://richardallen.me/2014/11/28/popovers.html ), but this does not seem to work very well with other elements such as buttons and labels.

Is it possible to create a custom popup for the iPhone that can contain buttons and tags that can be implemented from a separate view controller in my storyboard? This should be such as not to hide my main user interface behind a fullscreen popover. Preferably one that can be easily animated using UIView.animateWithDuration.

Just find some initial directions so I can learn more about its implementation. Or puts it along with another other user interface in the main view controller? Best to go?

+4
source share
1 answer

UIView = 0. , 1. , 0.

0

All Articles