I am editing an application where I added a new UIViewController to configure multiplayer games in one layout.
I added two buttons for each player (top button, bot button). Each button generates a warning on the screen (remember that it is in landscape orientation), but the problem is that player 2 does not see that the warning is turned, I mean that the warning should be displayed in its orientation, in front of me.
How can I do that? I want to turn a warning for player 2, will not see the notification information.
Here is the warning code I have:
@IBAction func ShowAlert(){
let message = "Test"
let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
let action = UIAlertAction(title: "OK", style: .Default, handler: nil)
alert.addAction(action)
presentViewController(alert, animated: true, completion: nil)
}