My apps adds buttons at runtime and each of them has to open a popup.
Unfortunately Apple doesn't let you add a custom view to a UIAlertController (instead of the message) and people highly advice against trying to hack it it because it might break in future iOS versions, which means that I'm going to have to create my own custom view.
The new view has to act exactly like a popup, so:
What should I use for that? A UIView in an extra .xib file (instantiate at runtime) or a new UIViewController in my existing .storyboard file (create some type of "show" segue at runtime)?
Unfortunately Apple doesn't let you add a custom view to a UIAlertController (instead of the message) and people highly advice against trying to hack it it because it might break in future iOS versions, which means that I'm going to have to create my own custom view.
The new view has to act exactly like a popup, so:
Displayed on top of the calling UIViewController
Don't allow clicking through
Close/remove the view again by clicking the "close" button
What should I use for that? A UIView in an extra .xib file (instantiate at runtime) or a new UIViewController in my existing .storyboard file (create some type of "show" segue at runtime)?