Sviatoslav Yakymiv
Sviatoslav Yakymiv

Reputation: 7935

UIPopoverViewController does not resize properly on iOS 8

I have UIPopoverController in my application. It contains UINavigationController. When I show UIPopoverController it uses correct content size of top view controller. When I push view controller UIPopoverController is getting resized (that is what I expect). But when I pop back to previous view controller, it does not getting resized. I used code from here. But it does not help. Everything works fine for iOS 7.

Can anyone help me?

Upvotes: 1

Views: 429

Answers (1)

Sviatoslav Yakymiv
Sviatoslav Yakymiv

Reputation: 7935

I found one solution, but still looking for more elegant one.

Add @property (nonatomic, weak) UIPopoverController *popover; to first controller in navigation stack and call [self.popover setPopoverContentSize:self.preferredContentSize animated:YES]; in place where popover should be resized.

Upvotes: 1

Related Questions