How to create NavigationController in code(iOS)

The code is expressing that how to create a NavigationController,As the version of Xcode is updated,xib,storyboard make coding easier.but we shouldn't forget how to create a variety of interface.