Organizational Research By

Surprising Reserch Topic

Experts Most Trusted 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



Walkin Jobs Opening



Government Jobs Opening


...