in app purchase in SKScene
问题 Is it possible to implement an in-app purchase within the SKScene ? If so, how? I'm trying to use a SKSpriteNode as a 'buy' button with no luck. I'm not sure whether the code needs to go in the SKScene or the view controller. I've looked at loads of tutorials, but they all seem to be aimed at single view applications rather than in SpriteKit. 回答1: First, put this in your game scene line and make sure you have the framework 'StoreKit' imported class GameScene: SKScene,