Use SKView
‘s isPaused
property:
Swift:
scene.view?.isPaused = true
Objective C:
self.scene.view.isPaused = YES;
This will stop all actions and physics simulation.
More Related Contents:
- Zooming and scrolling in SpriteKit
- SKPhysicsBody and [SKNode setScale:]
- How to hide iOS status bar
- Springs in Auto Layout: Distribute views evenly, with constraints, in Xcode 5
- What’s the best way to handle multiple SKScenes?
- UIImagePickerController breaks status bar appearance
- UILabel and NSLinkAttributeName: Link is not clickable
- UISearchBar text color change in iOS 7
- Get global tint color from code
- Show/hide UIToolbar, “match finger movement”, precisely as in for example iOS7 Safari
- Is there a way since (iOS 7’s release) to get the UDID without using iTunes on a PC/Mac?
- Access Asset Catalog pathForResource
- Cannot set text color of Send and Cancel buttons in the mail composer when presented from the UIActivityViewController in iOS7
- How to call method from ViewController in GameScene
- Generate gcda-files with Xcode5, iOS7 simulator and XCTest
- iOS 7 BUG – NSAttributedString does not appear
- How to add CSS for HTML to NSAttributedString?
- Launch screens supporting iOS6 and iOS7 – forced to splash screen
- Black bars showing when running app on iOS 7 (4 inch retina display)
- Warning :-Presenting view controllers on detached view controllers is discouraged
- How do I locate the CGRect for a substring of text in a UILabel?
- How do I accept a self-signed SSL certificate using iOS 7’s NSURLSession and its family of delegate methods for development purposes?
- UIImagePickerController error: Snapshotting a view that has not been rendered results in an empty snapshot in iOS 7
- How do I size a UITextView to its content on iOS 7?
- Remove empty space before cells in UITableView
- iOS 7 | Navigation bar / Toolbar buttons very close to status bar
- How to authenticate the GKLocalPlayer on my ‘third party server’?
- iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue
- Segue in SKScene to UIViewController
- MKPolygon area calculation