Created
June 12, 2013 08:18
-
-
Save d-amend/5763626 to your computer and use it in GitHub Desktop.
Enforce calling super in Objective C superclasses (generates warning)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface DAMCustomViewController : UIViewController | |
//Enforce calling super | |
- (void)viewWillAppear:(BOOL)animated __attribute__((objc_requires_super)); | |
- (void)viewDidAppear:(BOOL)animated __attribute__((objc_requires_super)); | |
- (void)viewWillDisappear:(BOOL)animated __attribute__((objc_requires_super)); | |
- (void)viewDidDisappear:(BOOL)animated __attribute__((objc_requires_super)); | |
- (void)viewDidLoad __attribute__((objc_requires_super)); | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment