I have a UIPopoverController
in a view, and the following method to update its CGSize
:
-(void)updatePop:(CGSize)newSize
{
NSLog(@"New Size: %@", NSStringFromCGSize(newSize));
[popoverSearch setPopoverContentSize:newSize animated:YES];
NSLog(@"popoverContentSize: %@", NSStringFromCGSize(popoverSearch.popoverContentSize));
}
When the method runs, the console shows the following:
New Size: {320, 640}
popoverContentSize: {320, 409}
Does anyone have idea why it's happening? It happens specially in landscape...