In ios7, how can I hide the statusbar programmatically? I am using XCode 4.6.1 (ios6.1) and I want to implement this in XCode itself.
XCode 4.6.1
on swift 4:
UIApplication.shared.isStatusBarHidden = ..true/false