-1
можно ли запустить этот код на Apple, Watch:запустить сцену (набор сюжетов)?
SCNScene *scene = [SCNScene sceneNamed:@"art.scnassets/ship.dae"];
// retrieve the ship node
SCNNode *ship = [scene.rootNode childNodeWithName:@"ship" recursively:YES];
// animate the 3d object
[ship runAction:[SCNAction repeatActionForever:[SCNAction rotateByX:0 y:2 z:0 duration:1]]];
// retrieve the SCNView
SCNView *scnView = (SCNView *)self.view;
// set the scene to the view
scnView.scene = scene;
// allows the user to manipulate the camera
scnView.allowsCameraControl = YES;
// show statistics such as fps and timing information
scnView.showsStatistics = YES;
Я не могу поставить сцену главного контроллера.
SCNView *scnView = (SCNView *)self.view;
Пожалуйста, помогите.