ios - 线程 1 断点 1.2 - Swift Xcode 6 beta 2

标签 ios xcode

我有启动画面的代码,然后会进入主登录画面。但它没有切换,它给我一个 Thread 1 Breakpoint 1.2 错误。

代码如下:

func switchScreen() {
    let mainStoryboard = UIStoryboard(name: "Storyboard", bundle: NSBundle.mainBundle())
    let vc : UIViewController = mainStoryboard.instantiateViewControllerWithIdentifier("vcMainLogin") as UIViewController // this is the line giving the error
    self.presentViewController(vc, animated: true, completion: nil) 
}

override func viewDidLoad() {
    super.viewDidLoad()
    NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: "switchScreen", userInfo: nil, repeats: false)
    // Do any additional setup after loading the view.
}

我已经将 Storyboard ID 设置为与类名相同,但它仍然给我这个,并且在输出中:仅 (lldb)

image

最佳答案

您可能在没有注意的情况下不小心设置了断点。您必须禁用所有应用程序断点。

您可以通过单击禁用所有断点, -> 调试菜单 -> 停用断点

关于ios - 线程 1 断点 1.2 - Swift Xcode 6 beta 2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24369475/

相关文章:

ios越狱设备将静态库链接到第三方应用程序

ios - 在调用 flatMap 之前定义对象

objective-c - 如何对 NSMutableArray [ Objective-C ] 的整数值进行排序?

xcode - Swift Facebook 图粉丝页公开照片

iphone - handleOpenURL 未在 iPhone 操作系统中使用自定义 url 模式调用

ios - 有没有办法在 Interface Builder 中设置 UINavigationBar 的委托(delegate)?

iphone - 最佳实践 : Fast UITableView Scrolling?

ios - 我可以在相机胶卷上获取视频的绝对 URI 并从我的应用程序中对其进行变异吗?

objective-c - ARC 禁止发送 'retain' 问题的显式消息

swift - 如何检查应用程序与以前的 macOS 版本的兼容性?