sprite kit - SWIFT - Can I have a SKView as a subview of a UIView? -


in storyboard, have base uiview, uiview containing square board drawing in cgrect , buttons , status fields above , below. tried drawing playing pieces animating them became nightmare have rendered them sprite nodes in array , animate themselves. far good. layer on top of skview view , want present spritekit scene in there skview.allowstransparency = true have sprites on transparent background (revealing board below) , using tapgesturerecognizers effect sprite animation event handling.

so in ib hierarchy is: vc / uiview / boardview: uiview / skview

problem is, spritekit scene targets top level uiview not skview game pieces behind board. missing simple here?

i'm gonna try placing child vc skview assist, if i've missed trick, appreciated.

i wish see code, create iboutlet skview, have outlet present scene, doing in app working on, know doable


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -