【问题标题】:How to set symbolic breakpoint for initWithNibName in Xcode如何在 Xcode 中为 initWithNibName 设置符号断点
【发布时间】:2019-04-22 09:01:17
【问题描述】:

如何在xcode 10.1中设置断点断点时的方法 [initWithNibName: bundle:] 在 Objective-C 中被调用?

我可以为-[UIViewController viewDidLoad] 设置断点,但不知道如何使用 initWithNibName。

我尝试了以下方法,但没有成功:

-[UIViewController initWithNibName:]
-[UIViewController initWithNibName: bundle:]
-[UIContentContainer initWithNibName:]
-[UIContentContainer initWithNibName: bundle:]

我不想为每个 CustomUIViewController 覆盖 initWithNibName 然后为每个类设置断点。

【问题讨论】:

    标签: debugging xcode10.1 symbolic-breakpoint


    【解决方案1】:

    编写方法签名时不要使用任何空格。应该是:

    -[UIViewController initWithNibName:bundle:]
    

    【讨论】:

    • 非常感谢先生。它就像一个魅力。节省我很多时间。 :D
    猜你喜欢
    • 2012-05-12
    • 1970-01-01
    • 2015-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-24
    • 1970-01-01
    相关资源
    最近更新 更多