xcode 执行不完整警告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10529949/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:16:22  来源:igfitidea点击:

Incomplete implementation warning

iosxcode

提问by Kurru

Is there a way of having Xcode tell me what function is not implemented correctly that is triggering its "incomplete implementation" warning?

有没有办法让 Xcode 告诉我哪些功能没有正确实现,触发了它的“不完整实现”警告?

回答by fzwo

Sometimes method names are not shown in the in-code warnings. In that case:

有时方法名称不会显示在代码内警告中。在这种情况下:

Go to the Issue navigator (the warning sign in the left pane), expand the warning, click on "Method declared here".

转到问题导航器(左窗格中的警告标志),展开警告,单击“此处声明的方法”。

Xcode issue navigator: Incomplete Implementation

Xcode 问题导航器:不完整的实现

First, click the little arrow (1), then click one of the method names (2).

首先,单击小箭头 (1),然后单击方法名称之一 (2)。

回答by sergio

If you click on the warning sign that Xcode displays at the very end of the file which is missing a method definition, you will see an additional message telling you which method it is.

如果您单击 Xcode 在文件末尾显示的缺少方法定义的警告标志,您将看到一条附加消息,告诉您它是哪种方法。

enter image description here

在此处输入图片说明

回答by Malek_Jundi

yes when you got this warning click on it .. for example it will take you the .m file .. in the warning there is a number for the methods in not implemented .. click on it and you will got the methods .. check the snap shots below.

是的,当您收到此警告时,单击它 .. 例如,它将带您进入 .m 文件 .. 在警告中,有一个未实现的方法的编号 .. 单击它,您将获得这些方法 .. 检查下面的快照。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明