I recently upgraded to xCode 6. I have two iPads that I use for development; one is running iOS 7.1.2, and the other is running iOS 8.0.2.
In my application, I use UIPopoverController to display a list of items in a UITableViewController . This works fine from iOS 5 to iOS 7. I only create a UIPopoverController once, and I often use it throughout the application. I want the popover size to be large enough to display the elements in the list (1 to 5 elements), so I call setPopoverContentSize: animated: to resize the popover after I determine how large the display area should be.
As I said, all this works fine. If I use an iPad running iOS 7, everything works correctly. But if I use an iPad running iOS 8, then the very first call to setPopoverContentSize: animated correctly displays a pop-up window, but only on the first call. All subsequent calls do not affect the size of the popup.
The released version of the application still works correctly, even if it runs on iOS 8 (it was developed and shipped by Apple using xCode 5). Therefore, this is a problem related to the combination of xCode 6 and iOS 8.
I could not understand why only the first call to setPopoverContentSize: animated works . Has anyone else seen this behavior? If so, how did you get the correct sizing of the UIPopoverController ?
source
share