Prevent animation when dynamically resizing popover

后端 未结 1 1653
小蘑菇
小蘑菇 2021-01-21 05:09

So I realized this myself and found this answer to confirm:

Prevent contentSizeForViewInPopover from animating

Basically I am in a similar boat in that I want to

相关标签:
1条回答
  • 2021-01-21 06:01

    So I decided to use delegation. Instead of resetting the content size in the view controller for the popover, I call my delegate (which is the containing view controller) with the new size so I can set it there with the animated property set to NO. Works well.

    0 讨论(0)
提交回复
热议问题