ios - Adding a UIButton to a SKScene -
what best way add uibutton
skscene
?
i realize can't add subview of scene, alternative can have tappable button on top of scene?
you can opt 1 of following ways:
1 - subclass skspritenode act button
2 - implement touch delegates within scene , respond if 'button' node touched
this link tell u how implement 2 above.
3 - use component spritekit button can found here.
Comments
Post a Comment