I implemented a UIPopoverController that is populated with a grouped UITableView. The number of cells in a table view can change dynamically while a popover is invisible. As soon as the popover becomes visible, the number of cells is fixed.
When the popover becomes visible, I resize the contents of the popover to the height of the table view. I use the SizeThatFits () method from the UITableView to get the size of the table and use this value to set the height of the PopoverContentSize.
This works great when the application is running. But always the first time a popover is displayed after a new application launch, SizeThatFits () provides the wrong height (from 60 pixels to high). Can anyone understand what this problem could be?
source share