Как открыть URL-адрес в Xcode с помощью SpriteKit с помощью Swift при нажатии на узел спрайтов. Я хочу, чтобы он открывался в Safari, а не в приложении. У меня это до сих пор:Как открыть URL-адрес с помощью SpriteKit и Swift
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
for touch in (touches as! Set<UITouch>) {
let location = touch.locationInNode(self)
if self.nodeAtPoint(location) == self.WebButton{
}
Вы можете открыть URL, как это-UIApplication.sharedApplication() OpenUrl (NSURL (строка: "HTTP : //www.apple.com ")) – Shripada