Switch to Gyroscope inside Xcode

  • Hello i'm tryng to switch to gyroscope inside my native iOs app.

    i'm using this method


    - (IBAction)gyroscopeBTN:(id)sender {


    [_myWebView stringByEvaluatingJavaScriptFromString:@"switch(plugin[skin_gyro].enabled);"];

    }


    but nothing happens?


    Is this the right javascript to activate the gyro?


    Ty

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!