1

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?

Khawar Ali
  • 3,462
  • 4
  • 27
  • 55
d.choi
  • 15
  • 4

2 Answers2

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
0

You can not disable it. You can find more explanation here:

Link!

Community
  • 1
  • 1
Kets
  • 438
  • 2
  • 8
  • 24