File tree Expand file tree Collapse file tree
Examples/Messenger-Storyboard/Base.lproj Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 9059 " systemVersion =" 14F27" targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" 0WO-Kt-Oxc" >
2+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 9531 " systemVersion =" 14F27" targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" 0WO-Kt-Oxc" >
33 <dependencies >
44 <deployment identifier =" iOS" />
5- <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 9049 " />
5+ <plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 9529 " />
66 </dependencies >
77 <scenes >
88 <!-- Message View Controller-->
99 <scene sceneID =" tne-QT-ifu" >
1010 <objects >
11- <viewController id =" BYZ-38-t0r" customClass =" MessageViewController" sceneMemberID =" viewController" >
11+ <viewController hidesBottomBarWhenPushed = " YES " id =" BYZ-38-t0r" customClass =" MessageViewController" sceneMemberID =" viewController" >
1212 <layoutGuides >
1313 <viewControllerLayoutGuide type =" top" id =" y3c-jy-aDJ" />
1414 <viewControllerLayoutGuide type =" bottom" id =" wfy-db-euE" />
Original file line number Diff line number Diff line change @@ -416,8 +416,12 @@ - (CGFloat)slk_appropriateBottomMargin
416416{
417417 // A bottom margin is required only if the view is extended out of it bounds
418418 if ((self.edgesForExtendedLayout & UIRectEdgeBottom) > 0 ) {
419- if (self.tabBarController ) {
420- return CGRectGetHeight (self.tabBarController .tabBar .frame );
419+
420+ UITabBar *tabBar = self.tabBarController .tabBar ;
421+
422+ // Considers the bottom tab bar, unless it will be hidden
423+ if (tabBar && !tabBar.hidden && !self.hidesBottomBarWhenPushed ) {
424+ return CGRectGetHeight (tabBar.frame );
421425 }
422426 }
423427
You can’t perform that action at this time.
0 commit comments