ARC静态接口问题
我的属性中有以下内容,
@property (nonatomic,readonly) NSString itemName;
最初是只读的 == 复制,我正在尝试迁移到 ARC,所以尝试分配 ||很强,但都
因构建错误而失败:
接口类型不能静态分配
有人可以帮我吗我不明白这条消息?
I have the following in my property
@property (nonatomic,readonly) NSString itemName;
originally readonly == copy i'm trying to migrate to ARC so tried assign || strong but all failed
with build error:
Interface type cannot be statically allocated
Can someone help me out here I dont understand this message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将其更改为:
您错过了星号,它可以正确地将其转换为 NSString 引用。
You need to change this to:
You're missing out the asterisk which correctly turns this into an NSString reference.