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 #import
or #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
Post a Comment