Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 6556e75

Browse files
Ignacio Romero ZurbuchenIgnacio Romero
authored andcommitted
Adds all UIViewController view callbacks as requiring super. Some are not implemented but still, just in case.
1 parent 015def0 commit 6556e75

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Source/Classes/SLKTextViewController.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,22 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
531531
/** UIAlertViewDelegate */
532532
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex NS_REQUIRES_SUPER;
533533

534+
534535
#pragma mark - Life Cycle Methods Requiring Super
536+
///------------------------------------------------
537+
/// @name Life Cycle Methods Requiring Super
538+
///------------------------------------------------
535539

536540
/**
537-
Configures view hierarchy and layout constraints. If you override this method, make sure to call [super viewDidLoad].
541+
Configures view hierarchy and layout constraints. If you override these methods, make sure to call super.
538542
*/
543+
- (void)loadView NS_REQUIRES_SUPER;
539544
- (void)viewDidLoad NS_REQUIRES_SUPER;
545+
- (void)viewWillAppear:(BOOL)animated NS_REQUIRES_SUPER;
546+
- (void)viewDidAppear:(BOOL)animated NS_REQUIRES_SUPER;
547+
- (void)viewWillDisappear:(BOOL)animated NS_REQUIRES_SUPER;
548+
- (void)viewDidDisappear:(BOOL)animated NS_REQUIRES_SUPER;
549+
- (void)viewWillLayoutSubviews NS_REQUIRES_SUPER;
550+
- (void)viewDidLayoutSubviews NS_REQUIRES_SUPER;
540551

541552
@end

0 commit comments

Comments
 (0)