ios - Error: Use of undeclared type 'SCNView' -



ios - Error: Use of undeclared type 'SCNView' -

im doing transition obj-c swift , after 5 seconds i'm stuck :/

i have storyboard scnview object i drag connection view controller xcode writes out @iboutlet var scene: scnview!

i error:

'weak' cannot applied non-class type '<<error type>>' utilize of undeclared type 'scnview'

what this?

i'm using latest xcode 6.3.

you need tell swift frameworks (modules) intend utilize in source code file import statement, tell objc such using #importor #include.

import scenekit class myviewcontroller: uiviewcontroller { @iboutlet var sceneview: scnview! // ... }

this both makes classes, functions , other symbols available utilize in source file , makes xcode link in scenekit framework binary when building app.

ios swift storyboard scenekit

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -