【问题标题】:Unit Testing in iOS 5: Is there a way to remove STAssertTrue() lines from the editor temporarily?iOS 5 中的单元测试:有没有办法暂时从编辑器中删除 STAssertTrue() 行?
【发布时间】:2012-01-12 21:31:57
【问题描述】:

我发现在我的代码之间编写数百行 STAssertTrue 会大大损害可读性。有没有办法暂时从编辑器窗口中删除这些行,所以我看不到它们?

我认为没有。但有时好的功能被隐藏了......

【问题讨论】:

    标签: iphone ios xcode ipad xcode4


    【解决方案1】:

    不完全是,但如果你改变了

    code
    STAssert...
    STAssert...
    STAssert...
    more code
    

    到:

    code
    {
        STAssert...
        STAssert...
        STAssert...
    }
    more code
    

    您可以通过单击文本编辑区域左侧的显示三角形将大括号部分折叠为 {...}。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-23
      • 2011-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多