美文网首页
xcode SDAutolayout 报错

xcode SDAutolayout 报错

作者: aaa000 | 来源:发表于2018-10-18 18:12 被阅读19次

__weak typeof(self)wSelf = self报错:- A parameter list without types is only allowed in a function definition. A corresponding warning tells me that __weak only applies to Objective-C object or block pointer types;type here is 'int'

解决办法:Xcode-> Build Settings-> C Language Dialect修改配置,C99改为GNU99,C99是不包含typeof的

相关文章

网友评论

      本文标题:xcode SDAutolayout 报错

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