I am using swipe gesture from bottom to top in my app, but when I do this, Apple control center comes up. Can I prevent bottom control center from coming up?
Asked
Active
Viewed 832 times
2 Answers
1
Hiding your status bar will make the behaviour of your app slightly different, but as far as I know there is no public API to prevent the control or notification center to appear on screen.
You can disable the status bar in IOS7 like this:
- (BOOL)prefersStatusBarHidden
{
return YES;
}
And for IOS6 and prior:
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];

Pancho
- 4,099
- 1
- 21
- 32
-
thank you but I use this code already. if I use this code, ios top status bar is disappear. – d.choi May 12 '14 at 13:21