Is it possible to disable Control Center in iOS 7 programmatically and if not, what are alternatives?

Actually there is an option. You cannot disable it. But you can prevent the accidental launch. Just disable the status bar. Then on swipe the user will be prompted whether the control centre have to be launched or not. it won’t be launched in a single swipe. Instead an arrow appears on the first swipe and the user need to click and drag the arrow to launch the control centre, hence prevent accidental launch. Use this code to disable status bar.

You can disable the status bar using this delegate in IOS7:

- (BOOL) prefersStatusBarHidden
{
    return YES;
} 

And this method in IOS6.1 and prior:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];

Leave a Comment