简体   繁体   中英

hidebottombarwhenpush is not working in moving tabbarcontroller storyboard to another storyboard

Here is my question like I am having a storyboard called Tabbar.storyboard and another storyboard called Main.storyboard . Tabbar.storyboard is my initial storyboard and application starts with that storyboard. Now when I move from Tabbar storyboard to Main storyboard with enabled hidebottombarwhenpushed , Tabbar hides successfully but left an empty view instead.

I also put hidebottombarwhenpushed in my viewcontroller in which I pushed from tabbar controller but nothing worked

here is my 图片 of Tabbar storyboard.

Here is my TabbarVC in simulator.

Here when I push from Tabbar storyboard to main storyboard Tabbar is hidden but left an empty view. 图片 of simulator where you see an empty view at bottom.

Any help would be appreciated.

If you are using constraints, check if the bottom constraint of your UICollectionView [?] in your UIViewController are being set to "bottomLayoutGuide" (also check if "use safe area" option is checked/unchecked).

Using the XCode's view debugger is also helpful. Try to see where are the bounds of your views, and check if some constraints aren't being broken.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM