In combination with the navigation controller displayed at the top of the screen, the navigation bar is employed. The case inherited by UIView is the UINavigationBar class.
The UINavigationBar object is a bar shown at the top of the view controller window, integrated with the Navigation Controller. A navigation bar usually includes bar-button items needed to navigate the hierarchy of screens. A conventional Navigation bar has a left-hand button, the center View Controller title and the right-hand button.
In combination with the UINavigationController object, the most popular navigation bar is used. The navigation controller develops and manages the navigation bar linked with it. The contents of the navigation bar are also monitored by using the view controller properties.
The following actions are necessary to adjust the navigation bar's aspect using a navigation controller.
A navigation bar can also be used without a navigation control. We must look for UINavigationBar in the object library to use a navigation bar and drag the outcome to our View controller. The following actions must be taken to configure the appearance of the stand-alone UINavigationBar.
The UINavigationBar barStyle feature is used to set the bar style. In general, there are two looks: black or default on the navigation bar. The black style makes the black background navigation bar and the white text. We can also configure it to make it semicircular. The table below shows interface builder attributes used for the navigation bar configuration.