IOS: Where is the top layout guide in Xib file Interface Builder

iosiphoneswiftuikit

I'm currently developing iOS apps with swift. I want to develop my apps without storyboard just with the xib files and Grouping my Views and Controllers with seperate groups. But i realized a missing thing in xib file. I can not see top layout guide and bottom layout guide in xib file. I want to arrange my UIControls according to the layout guides. But there is no one? Is there another way to set constraints with top layout guide with interface builder without using Storyboards?

Thanks in advance.

Best Answer

If you do not want the entire view of the ViewController to extend underneath UINavigationBar when one is present. Turn off the edgesForExtendedLayout property of the UIViewController.

self.edgesForExtendedLayout = []