Unrecognized selector sent to user instance of UIStoryboardSegue on ios8

I use custom segue in Swift (simplified):

import Foundation public class CustomSegue: UIStoryboardSegue { override public func perform() { super.perform() } } 

Setting this class as the segue class in the storyboard causing a runtime error on iOS 8, while it works fine on iOS 9:

[APP_NAME.CustomSegue setUseDefaultModalPresentationStyle:]: unrecognized selector sent to the instance

I use Present Modally, although I get similar errors when using any other type of segues.

+5
source share

Source: https://habr.com/ru/post/1235311/


All Articles