By calling [[UIApplication sharedApplication] setStatusBarHidden:YES];
you hide native application status bar that is instance of UIStatusBar
class. But it doesn't hide your custom view statusBarView
that is instance of UIView
class.
For hiding custom view call:
statusBarView.hidden = YES;
or
[statusBarView removeFromSuperView]
.
If you need hide it from ViewController
then consider adding property to AppDelegate
for storing statusBarView
and accessing it from any other place.