1

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?

Community
  • 1
  • 1
Sviatoslav Yakymiv
  • 7,887
  • 2
  • 23
  • 43

1 Answers1

1

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.

Sviatoslav Yakymiv
  • 7,887
  • 2
  • 23
  • 43