Post

Replies

Boosts

Views

Activity

Reply to I have a class with an overridden method, and the method never gets called.
I encountered this today, and found that it was caused by loading a view controller from a storyboard by name... as the base view-controller class and not the derived class that it is specified as in the storyboard. So I understand why the overridden methods wouldn't get called. What I don't understand is why, when instantiated with the exact same method, some other derived controllers' overrides DO get called.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22