简体   繁体   English

嵌入Segue不向后兼容

[英]Embed Segue not backwards compatible

I have added Embed-Segues in my App and I just realized that this is not compatible to iOS 5.0. 我在我的应用程序中添加了Embed-Segues,我才意识到这与iOS 5.0不兼容。

I get the following error on Startup: 我在启动时遇到以下错误:

'NSInvalidUnarchiveOperationException', 
reason: 'Could not instantiate class named UIStoryboardEmbedSegueTemplate'

Before I had my own custom "EmbedSegue" class which does pretty much the same thing. 在我拥有自己的自定义“EmbedSegue”类之前,它几乎完全相同。

Is there a way to kind of bridge this in iOS 5.0 or do I have to revert the changes that I've made? 有没有办法在iOS 5.0中解决这个问题,还是我必须恢复我所做的更改?

It did turn out that the Embed segue is an iOS 6.0 only feature. 事实证明,Embed segue仅是iOS 6.0的一项功能。 It is a shame that Xcode does not warn me here, having the Target OS Version set to > 5.0. 令人遗憾的是Xcode没有在这里警告我,将目标操作系统版本设置为> 5.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM