想让标签打开网站,但iOS模拟器停留在开始屏幕
我正在制作一个iPhone应用程序,当点击标签时,它会打开一个网站。然而,当我运行我的应用程序时,iOS模拟器只是停留在标题屏幕上,不会从那里移动。当我退出模拟器时,会弹出一个对话框,上面写着“连接到CoreSimulatorBridge时遇到异常:在等待回复时连接无效”。任何帮助都将不胜感激!谢谢 这是我的密码:想让标签打开网站,但iOS模拟器停留在开始屏幕,ios,swift,hyperlink,Ios,Swift,Hyperlink,我正在制作一个iPhone应用程序,当点击标签时,它会打开一个网站。然而,当我运行我的应用程序时,iOS模拟器只是停留在标题屏幕上,不会从那里移动。当我退出模拟器时,会弹出一个对话框,上面写着“连接到CoreSimulatorBridge时遇到异常:在等待回复时连接无效”。任何帮助都将不胜感激!谢谢 这是我的密码: import UIKit class ViewController: UIViewController { @IBAction func myButton(sender:
import UIKit
class ViewController: UIViewController {
@IBAction func myButton(sender: AnyObject) {
UIApplication.sharedApplication().openURL(NSURL(string: "http://www.mcmastermhs.com")!)
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
试试这个:
killall-9com.apple.CoreSimulator.CoreSimulatorService