sammcewan / WYPopoverController

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

Fixed loop bug #48

Closed maciekish closed 9 years ago

maciekish commented 9 years ago

Actually calling setPreferredContentSize calls the swizzled implementation (itself) and results in an endless loop. Calling sizzled_setPreferredContentSize will call the original method and set the content size properly.

maciekish commented 9 years ago

The crash is reproducible by presenting a share sheet in a vanilla popover and then tapping "More" in the share sheet.