Can I block the appearing control center in ios7 on some views?

I need to disable the control center on one key view in case I use the swipe gesture to navigate this view controller.

+6
source share
4 answers

Add the following to your Info.plist:

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

When you swipe up, avoid opening the control center. Gestures usually work for your application, and it only shows a grabber

+6
source

The best workaround I have found for this is to present the view controller in full screen mode. (I'm not talking about outdated full screen)

Thus, you invoke the \ control notification center by using two checks instead of one. If the user moves up or down, he will see a small arrow instead of the entire notification center \ control. Swipe the other along this arrow to open the center. There is no public way to completely disable it, so this is your best bet.

+2
source

You cannot do this. The control center is a function implemented in the apple. This is the same as the notification center, which you also cannot turn off.

+1
source

You cannot do this. But you can warn users that they can disconnect it from "Settings" (not that I suggest you do it if you do not want your users to go crazy)

+1
source

Source: https://habr.com/ru/post/952693/


All Articles