replaced deprecated methods

replaced

[[UIApplication sharedApplication] setStatusBarHidden:hidden
animated:animated];

with

            [[UIApplication sharedApplication]
setStatusBarHidden:hidden withAnimation:UIStatusBarAnimationFade];