Closed digitaldesaster closed 8 years ago
In SplitView Mode on iOS9
UIScreen.mainScreen().bounds delivers the size of the screen. But we want the size of the app.
You can use UIScreen.mainScreen().applicationFrame instead of UIScreen.mainScreen().bounds
btw: i think you forgot to add a listener to the cancel button ;-)
self.cancelButton.addTarget(self, action: "buttonTapped:", forControlEvents: UIControlEvents.TouchUpInside)
best regards Alex
Thank you Alex :D
Thank you for this tiny helper :-)
you need to replace all UIScreen.mainScreen().bounds with UIScreen.mainScreen().applicationFrame
you still use bounds in some lines...
In SplitView Mode on iOS9
UIScreen.mainScreen().bounds delivers the size of the screen. But we want the size of the app.
You can use UIScreen.mainScreen().applicationFrame instead of UIScreen.mainScreen().bounds
btw: i think you forgot to add a listener to the cancel button ;-)
self.cancelButton.addTarget(self, action: "buttonTapped:", forControlEvents: UIControlEvents.TouchUpInside)
best regards Alex