iOS Question Control-Center disable

Discussion in 'iOS Questions' started by Filippo, Jun 18, 2015.

  1. Filippo

    Filippo Expert Licensed User

    Hi,

    how can you deactivate the control center via app?
    I ask because every time you do the Control Center visible, my BLE device loses its connection.

    Control-center.jpg
     
  2. Filippo

    Filippo Expert Licensed User

    I have found the code:
    Code:
    - (BOOL) prefersStatusBarHidden
    {
        
    return YES;
    }
    how can I do it with NativeObject?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

  4. Filippo

    Filippo Expert Licensed User

    You're right!:(
    But where can I disable it? Or should not I turn off?
    Code:
    Private Sub Application_Inactive
    '    Log("Application_Inactive")
      
        
    If GPS1.LocationServicesEnabled Then
            GPS1.stop
        
    End If
        
    'Bluetooth ausschalten
        If mCrono.bluetooth.btManager.IsInitialized Then mCrono.bluetooth.btManager.Disconnect
    End Sub
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Application_Background is better.
     
  6. Filippo

    Filippo Expert Licensed User

    Thank you, I will do so.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice