简体   繁体   中英

Empty space in UISplitViewController embedded in a UITabViewController

I have this view hierarchy on my storyboard:

UITabBarController -> UIView + ContainerController -> SplitViewController => [MASTER: ( UINavigationController -> UITableviewController -> UITableViewController ), DETAIL: ( UINavigationController -> UIView )]

Here a screenshot of the storyboard:

在此处输入图片说明

As a result my detail view controller have a sort of offset from the bottom screen as shown in the red circle in the next screen:

在此处输入图片说明

I think it is a consequence of having a split view controller in a container controller that its embedded in a tab controller. It's like the detail view inherits the space of the tab bar of the root tab bar controller. I have tried to set all the options like UnderBottombar or "Under opaque bar" but nothing. I have removed any sort of custom code in my classes but there is always the same problem. How can i fix this issue?

ps: Sorry for bad english :)

This can be solved by checking Under Opaque Bars from attribute inspector of your SplitViewController . refer below screenshot,

在此处输入图片说明

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