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?

有帮助吗?

解决方案 2

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

Link!

其他提示

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];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top