美文网首页
iOS编译警告-消除注释中的警告

iOS编译警告-消除注释中的警告

作者: Billlin | 来源:发表于2020-01-22 15:03 被阅读0次

Build Settings 中将 Documentation Comments 的warning开关关掉,注释中就不会报警告了。

原因:

在Xcode8之后,文本注释会产生警告,可以通过设置Build Settings中的 Documentation Comments来设置是否打开注释中的警告。

注释中的警告:


  • '@method' command should be used in a comment attached to an Objective-C method declaration
    用@method描述非OC的方法。

  • '@result' command used in a comment that is attached to a method returning void
    用@result描述无返回值的方法。

  • Parameter '' not found in the function declaration
    参数描述在方法中未找到。

相关文章

网友评论

      本文标题:iOS编译警告-消除注释中的警告

      本文链接:https://www.haomeiwen.com/subject/tnhjzctx.html