gpt4 book ai didi

objective-c - 警告 : declaration does not declare anything

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:53:20 39 4
gpt4 key购买 nike

我在我的界面文件中收到一条奇怪的警告。

enter image description here

这也出现在我为此声明属性的那一行。

enter image description here

谁能帮帮我?

最佳答案

在您的项目中的某处,您有一个 #definexOffset 定义为空(除了注释)。像这样:

#define xOffset

或者这个:

#define xOffset // hello

如果您在收到警告的地方按住 command 并单击 xOffset(或者按住 control 单击它并从弹出菜单中选择“跳转到定义”),Xcode 应该跳转到#定义

关于objective-c - 警告 : declaration does not declare anything,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9425917/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com