So solution is use A controller viewDidAppear function and forcefully changed the size and then again rechange then your issue is solved.
Example :
- (void)forcePopoverResize
{
CGSize currentSetSizeForPopover = self.contentSizeForViewInPopover;
CGSize tempPopoverSize = CGSizeMake(currentSetSizeForPopover.width - 1.0f, currentSetSizeForPopover.height - 1.0f);
self.contentSizeForViewInPopover = tempPopoverSize;
self.contentSizeForViewInPopover = currentSetSizeForPopover;
}
{
CGSize currentSetSizeForPopover = self.contentSizeForViewInPopover;
CGSize tempPopoverSize = CGSizeMake(currentSetSizeForPopover.width - 1.0f, currentSetSizeForPopover.height - 1.0f);
self.contentSizeForViewInPopover = tempPopoverSize;
self.contentSizeForViewInPopover = currentSetSizeForPopover;
}
[self forcePopoverResize];
Now your problem is solved :)
No comments:
Post a Comment