You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Wednesday, September 11th 2013, 5:47pm

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?



Wednesday, September 11th 2013, 8:51pm


you can't send krpano action code directly to the Javascript!

See here how to get and use the krpano Javascript interface:

That means - first you would need to get the Javascript 'interface' object and then use the 'call' function from that object to send the krpano action code.

Best regards,