Waiting for user to press a button in Swift 2
<p>In one function in my Swift code, I need to wait until user presses a button. Otherwise, I just do nothing. How do I do this? Maybe button press triggers some event I can catch.</p>

<p>P.S. Due to structure of my code, doing what I want on this button press (like @IBAction) is not an option!</p>