sprite kit - How do I use whiteColor in Swift and SpriteKit -


i'm running yosemite , xcode 6. created new project using "game" option, spritekit , swift.

in override didmovetoview() in gamescene.swift added following line try change ground color:

self.backgroundcolor = skcolor(whitecolor) 

this compiles won't run, stopping error "use of unresolved identifier 'whitecolor'"

the import is:

import spritekit 

do need import whitecolor defined (which assume constant in header file somewhere ?

+[skcolor whitecolor] class method, usual, translate skcolor.whitecolor()

self.backgroundcolor = skcolor.whitecolor() 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -