You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I make a call to setPreferredContentSize in my viewWillAppear when I have calculated the appropriate size, but the Popover I'm contained in does not respect my change.
This is on iOS8.
I spent some time researching it and to me it look like it's due to the KVO addObserver call on these selectors (setPreferredContentSize & contentSizeForViewInPopover) are made in a concurrent block during initialization.
I have noticed that iOS8 uses a much 'lazier' initialization scheme and that probably pushes these addObserver calls to after my viewControllers viewWillAppear.
I made a small hack and just moved the KVO setup out of the block, back to the main initialization and then it worked as I would expect.
I don't know the reason to put this type of KVO setup in a concurrent block so I'd hope You can come up with a more appropriate and correct solution.
The text was updated successfully, but these errors were encountered:
I make a call to setPreferredContentSize in my viewWillAppear when I have calculated the appropriate size, but the Popover I'm contained in does not respect my change.
This is on iOS8.
I spent some time researching it and to me it look like it's due to the KVO addObserver call on these selectors (setPreferredContentSize & contentSizeForViewInPopover) are made in a concurrent block during initialization.
I have noticed that iOS8 uses a much 'lazier' initialization scheme and that probably pushes these addObserver calls to after my viewControllers viewWillAppear.
I made a small hack and just moved the KVO setup out of the block, back to the main initialization and then it worked as I would expect.
I don't know the reason to put this type of KVO setup in a concurrent block so I'd hope You can come up with a more appropriate and correct solution.
The text was updated successfully, but these errors were encountered: