Organizational Research By

Surprising Reserch Topic

when a subclass overrides a method how can we ensure at compile time that the s using -'ios,objective-c'


when a subclass overrides a method how can we ensure at compile time that the s  using -'ios,objective-c'

The classic example is:

- (void)viewDidLoad {
    [super viewDidLoad]; // Subclasses sometimes forget this line

    // Subclass's implementation goes here
}


What are some ways to ensure at compile time that UIViewController subclasses always call [super viewDidLoad] when they override [UIViewController viewDidLoad]?
    

asked Sep 7, 2015 by rajesh
0 votes
8 views



Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

...