squimer / DatePickerDialog-iOS-Swift

Date picker dialog for iOS
MIT License
582 stars 177 forks source link

Support ios9 Multitasking #9

Closed digitaldesaster closed 8 years ago

digitaldesaster commented 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

viniciussoares commented 8 years ago

Thank you Alex :D

digitaldesaster commented 8 years ago

Thank you for this tiny helper :-)

digitaldesaster commented 8 years ago

you need to replace all UIScreen.mainScreen().bounds with UIScreen.mainScreen().applicationFrame

you still use bounds in some lines...