如何去掉storyboard中UIView的底白space?
How to remove the bottom white space of UIView in storyboard?
我是 iOS 开发的新手,我遇到故事板中的布局问题。
我创建了一个 UIViewController 并添加了一个容器。在这个容器内我创建了我的布局,见下图:
storyboard image
然而,当我 运行 我的项目时,我的布局下方有一个白色 space。我 运行 没有办法解决这个问题
Layout in the simulator
要调用包含我使用的容器的 viewController:
let postView = storyboard!.instantiateViewControllerWithIdentifier("InfoPostView") as! InformationPostingViewController
presentViewController(postView, animated: true, completion: nil)
提前致谢:)
无论屏幕尺寸如何,您都需要使用约束来确保容器视图填满整个屏幕。
我是 iOS 开发的新手,我遇到故事板中的布局问题。
我创建了一个 UIViewController 并添加了一个容器。在这个容器内我创建了我的布局,见下图: storyboard image
然而,当我 运行 我的项目时,我的布局下方有一个白色 space。我 运行 没有办法解决这个问题 Layout in the simulator
要调用包含我使用的容器的 viewController:
let postView = storyboard!.instantiateViewControllerWithIdentifier("InfoPostView") as! InformationPostingViewController
presentViewController(postView, animated: true, completion: nil)
提前致谢:)
无论屏幕尺寸如何,您都需要使用约束来确保容器视图填满整个屏幕。