什么是弃用的推送转场?(iOS 8)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26307503/
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
What is a deprecated push segue? (iOS 8)
提问by cheznead
I have no idea what deprecated means in this context. I am new to programming and am making my first couple of apps in Xcode 6. Today I was making a to-do list app and when connecting to the scene where the user can input a new to-do item to add to main table, I was invited to use a push segue. It mentioned that it is deprecated which it doesn't seem to have been in Xcode 5 (which is the version tutorial uses).
我不知道在这种情况下弃用意味着什么。我是编程新手,正在 Xcode 6 中制作我的前几个应用程序。今天我正在制作一个待办事项列表应用程序,当连接到用户可以输入新的待办事项以添加到主表的场景时,我被邀请使用 push segue。它提到它已被弃用,它似乎没有出现在 Xcode 5(这是教程使用的版本)中。
Can anyone explain this to me? I know the push segue allows for backward navigation but that's about all I know!
任何人都可以向我解释这一点吗?我知道 push segue 允许向后导航,但这就是我所知道的!
Thanks a lot.
非常感谢。
回答by Rumin
The word 'deprecated' means the function is removed and will be no longer available in future ios versions from the point at which it was deprecated . If u continue to use this deprecated functions, then the apps may begin to crash at that function in respective ios versions.
'deprecated' 一词意味着该功能已被删除,并且在未来的 ios 版本中将不再可用,从它被弃用的点开始。如果您继续使用这个已弃用的功能,那么应用程序可能会在相应的 ios 版本中开始在该功能上崩溃。
'Push deprecated ' means the storyboard supports 'PUSH SEGUE' no more in ios8 in XCode6. Use 'SHOW' instead of 'PUSH'.
'Push deprecated' 意味着故事板在 XCode6 的 ios8 中不再支持'PUSH SEGUE'。使用“显示”而不是“推送”。
You can see the same issue here in this question:
您可以在此问题中看到相同的问题:
回答by davbryn
Deprecated means that the method you are using will not exist in future versions of iOS, so you are being warned that at some point it will be taken away.
弃用意味着您正在使用的方法在未来的 iOS 版本中将不存在,因此您会被警告说在某些时候它将被取消。
If you build your app and continue to use this code, when Apple release an update you might find your app crashes.
如果您构建您的应用程序并继续使用此代码,当 Apple 发布更新时,您可能会发现您的应用程序崩溃。
It basically is telling you that the functionality you are using will work for now, but if you want it to work in the future you should not be using it.
它基本上是在告诉您您正在使用的功能现在可以使用,但是如果您希望它在将来可以使用,则不应该使用它。