sammcewan / WYPopoverController

WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.
Other
252 stars 74 forks source link

Modified code that deals with repositioning popover on orientation change #57

Closed littlepotatosoftware closed 9 years ago

littlepotatosoftware commented 9 years ago

The code that existed after calling the delegate's willRepositionPopoverToRect method was incorrectly comparing pointers -- the code had #pragmas around it to stop the compiler warning, but it was a valid warning - the code wasn't doing what was intended. Changed this block to initialize the local variables passed by reference to the delete method, and then correctly check values that may have been returned. Made the assumption that if you pass in CGRectZero for the bounds, then a valid change in bounds would not be CGRectZero (seems reasonable).

dtrotzjr commented 9 years ago

:+1: