Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a deprecated push segue? (iOS 8) [duplicate]

Tags:

xcode

ios

segue

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).

Can anyone explain this to me? I know the push segue allows for backward navigation but that's about all I know!

Thanks a lot.

like image 251
cheznead Avatar asked Oct 10 '14 20:10

cheznead


2 Answers

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.

'Push deprecated ' means the storyboard supports 'PUSH SEGUE' no more in ios8 in XCode6. Use 'SHOW' instead of 'PUSH'.

You can see the same issue here in this question:

Adaptive segue in storyboard Xcode 6. Is push deprecated?

like image 56
Cityzen26 Avatar answered Oct 19 '22 19:10

Cityzen26


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.

Deprecation

If you build your app and continue to use this code, when Apple release an update you might find your app crashes.

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.

like image 35
davbryn Avatar answered Oct 19 '22 19:10

davbryn