iOS: Hide/Show the Status bar in an iPhone/iPad application

Lets see how to change the visibility of the status bar in an iphone/ipad application. The UIApplication class provides a centralized point of control and coordination for applications running on iOS. Every application must have exactly one instance of UIApplication (or a subclass of UIApplication). When an application is launched, the UIApplicationMain function is called;