Looking for methods that are called super only?

In Xcode, many automatically generated class files (especially for subclasses of the UIViewController) will include methods that resemble the following:

- (void)dealloc {
    [super dealloc]
}

For me, this seems pretty pointless - if all you have to do is super call, why is it at all? Is there a purpose to create these methods?

+3
source share
1 answer

, . , . . super, . , ,

+12

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


All Articles