xcode

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;

xcode

iOS: Change the Orientation of the Status Bar

Lets see how to change the orientation of the status bar programmatically in an iphone/ipad application. There are four orientations: Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight. 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