What is the edge edge property in a UIViewController?

I read on the forums about this property, mainly its people set this property to false or remove it in the storyboard. I did it myself because when I have a UINavigation controller built into the view, the top panel pushes my UITextView down, so the text starts editing below.

Undoing the extended borders under the upper bars in the StoryBoard in the UIViewController solves my problem, but I don't understand what is going on.

Can someone give an explanation of what the purpose of this property is, I would like to know more about it.

+6
source share
2 answers

By default, UITableViewController views are automatically inserted in iOS7 so that they do not start under the navigation bar / status bar. This is a controller using the Configure Scrolling View Settings option on the Attribute Inspector tab in the UITableViewController in the interface builder or by the setAutomaticallyAdjustsScrollViewInsets: UIViewController method.

For UIViewController content, if you do not want its view content to expand under the upper / lower columns, you can use the "Extend borders in upper bars / lower borders" settings in the "Interface Builder". This is available using the edgesForExtendedLayout property.

Link: Why is the UIViewController distributed under the UINavigationBar, while the UITableViewController does not support?

+5
source

The edgesForExtendedLayout property edgesForExtendedLayout along with the extendedLayoutIncludesOpaqueBars property, determines whether the view manager views are edgesForExtendedLayout upper and lower columns (navigation bar, toolbar, etc.).

+1
source

Source: https://habr.com/ru/post/978106/


All Articles