美文网首页
Cannot assign to 'self' outside

Cannot assign to 'self' outside

作者: 清辉_ | 来源:发表于2020-08-19 14:37 被阅读0次

    Cannot assign to 'self' outside of a method in the init family

    实例化函数名的开头必须是initxxxx且是小写开头:如下

    + (instancetype)fooWithBar:(NSInteger)bar;

    + (instancetype)initWithBar:(NSInteger)bar;

    相关文章

      网友评论

          本文标题:Cannot assign to 'self' outside

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