Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i block appearing control center in ios7 on some views?

I need to disable control center on one key view in case i use "swipe up" gesture for navigation on that view controller

like image 495
Ash Var Avatar asked Aug 28 '13 21:08

Ash Var


People also ask

How do I hide the Control Center on my iPhone lock screen?

All that is required to Disable Control Center Access from Lock Screen is to go to Settings > Touch ID & Passcode and enter Lock Screen Passcode, when prompted. On the next screen, scroll down to “Allow Access When Locked” section and move the toggle next to Control Center to OFF position.


2 Answers

Add the following to your Info.plist:

<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

When you "swipe up" it avoid to reveal the control centre. The gestures work normally for your application and it shows only a grabber

like image 192
Marco Cattai Avatar answered Sep 16 '22 16:09

Marco Cattai


Best workaround I've found for this is to present the view controller in full screen. (I'm not talking about the deprecated Full Screen property)

By doing so you force the notification \ control center to be triggered with two swipes instead of one. If the user swipes up or down he'll see a small arrow instead of the all notification\control center. Another swipe on that arrow will open the center view. There's no public way to disable it completely so this is your best bet.

like image 34
Segev Avatar answered Sep 19 '22 16:09

Segev