Skip to content

Commit cdf3c2c

Browse files
Merge pull request #51 from jhersh/master
Determine content size with nav's visible controller by jhersh
2 parents c10ae16 + a38cf98 commit cdf3c2c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,10 +1478,7 @@ - (CGSize)contentSizeForViewInPopover
14781478
{
14791479
UINavigationController *navigationController = (UINavigationController *)controller;
14801480

1481-
if ([[navigationController viewControllers] count] > 0)
1482-
{
1483-
controller = (UIViewController *)[[navigationController viewControllers] objectAtIndex:0];
1484-
}
1481+
controller = [navigationController visibleViewController];
14851482
}
14861483

14871484
#ifdef WY_BASE_SDK_7_ENABLED

0 commit comments

Comments
 (0)