我刚开始尝试学习
Swift,但是一个错误不断出现,我不知道为什么 – “源代码中的编辑器占位符”.可能导致这种情况的原因(我无法发布代码图片,因为我是新成员).
谢谢
解决方法
它刚刚发生在我身上,但是一旦我查看代码,原因就非常简单了.我使用autofill类作为函数的参数.麦角“占位符”
//Leaving the auto-completed signature gave the error myclass.myFunction(myParam: UIControl) //removing the auto complete params and using a real one cleared error myclass.myFunction(myUIControl)