[英]How do I remove something that is no longer in the program, that I dragged from the View Controller to a function?
I have dragged an element onto my code.我已将一个元素拖到我的代码上。 How do I undo that?
我该如何撤消呢? Here's an image:
这是一张图片:
The Green Slider is no longer on my storyboard and yet it appears in the round tab!绿色 Slider 不再出现在我的 storyboard 上,但它出现在圆形标签中!
Here again:又是在这里:
Is there a way to get rid of "Main.storyboard – Green Slider"?有没有办法摆脱“Main.storyboard – 绿色滑块”?
Click on the pop up.. it will take you to storyboard.. remove its reference from there if it exist.. attached giff for your help单击弹出窗口..它将带您到 storyboard.. 如果存在,请从那里删除它的引用.. 附加 gif 供您帮助
If reference doesn't exist then do 4 steps如果参考不存在,则执行4 个步骤
/Users/XXXXX/Library/Developer/Xcode/DerivedData
and delete your cache of project/Users/XXXXX/Library/Developer/Xcode/DerivedData
并删除您的项目缓存/Users/ХХХХХ/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
and delete all cache from this directory/Users/ХХХХХ/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
并从此目录中删除所有缓存If still Exist Do如果还存在 做
Just Change one letter from name it cause to break relationship to storyboard and link it again to new storyboard只需将其名称中的一个字母更改为与 storyboard 的关系,并将其再次链接到新的 storyboard
I hope these steps will help you我希望这些步骤对你有帮助
You could do a clean build by running command+shift+k您可以通过运行 command+shift+k 进行干净的构建
Another example would be to go in front of the IBOutlet and and move it to the previous line or the next line.另一个示例是 IBOutlet 前面的 go 并将其移动到上一行或下一行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.