Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions STPopup/STPopupController.m
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ - (CGFloat)preferredNavigationBarHeight
{
// The preferred height of navigation bar is different between iPhone (4, 5, 6) and 6 Plus.
// Create a navigation controller to get the preferred height of navigation bar.
UINavigationController *navigationController = [UINavigationController new];
return navigationController.navigationBar.bounds.size.height;

return [_navigationBar sizeThatFits:CGSizeZero].height;
}

#pragma mark - UI setup
Expand Down