sammcewan / WYPopoverController

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

How do i change the content size of a popover without animation? #32

Open maciekish opened 9 years ago

maciekish commented 9 years ago

Hi, I added a new method to my fork:

- (void)setPopoverContentSize:(CGSize)size animated:(BOOL)animated
{
    popoverContentSize_ = size;
    [self positionPopover:animated];
}

However positionPopover: seems to be ignoring the animated property and the frame change of the popover background gets animated anyway. How do i do this properly?

maciekish commented 9 years ago

Turns out there is a KVO that fires when the size of the contentViewController changes which has animation.

I created a method that allows one to do such viewController changes without animation if desired

https://github.com/sammcewan/WYPopoverController/pull/33