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...