XCode自定义segue类卡住了 [英] XCode custom segue class stuck

查看:108
本文介绍了XCode自定义segue类卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题可能看起来有点奇怪,但我无法理解为什么会发生这种情况。

this question might seem a little weird, but I can't wrap my head around why this is happening.

我做的是我重命名了一个自定义的segue类,并在自定义类下的故事板中反映出来,但它仍然试图调用旧的。

What I did was I renamed a custom segue class, and reflected it in the storyboard under 'custom class', but it still tries to call the old one.

我已经清理了构建文件夹并在项目中搜索了旧的自定义类名称,至少在xcode中找不到任何内容。我查看了故事板文件里面,它也不存在。

I have cleaned the build folder and searched the project for the old custom class name and it does not find anything in xcode at least. I look inside the storyboard file, it's not there either.

即使我删除自定义segue,我也得到:

Even if I delete the custom segue all toghether I get:

'Could not find a segue class named 'xxxxxxxxx''

事情是我无法理解上面的'xxxxxxxxx',它不在故事板文件或代码中..

The thing is I cannot understand from where it gets 'xxxxxxxxx' above, it is not in the storyboard file or in the code..

[[[self view] viewWithTag:1] resignFirstResponder];

当我调试时,它会转到线程终止显示错误。我删除了文本字段中的所有插座,事件和segue。我没有自定义segue使用'xxxxxxxxx'作为任何地方的类。

When I debug this is where it goes to thread kill showing the error. I have removed all the outlets, events and segues on the textfield. I have no custom segue using 'xxxxxxxxx' as a class anywhere.

我还能做些什么来更彻底地清理项目吗?从哪里开始?

Is there any other thing I can do to clean the project more thoroughly? Where to begin?

推荐答案

答案是重置故事板目标成员资格,然后重置模拟器。

The answer is to reset the storyboard target membership, then reset the simulator.

这篇关于XCode自定义segue类卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆