Created
September 3, 2016 12:07
-
-
Save tkc/c6f0707d389cd5d00e83640136faed98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class CustomLabel: UILabel { | |
override func willMoveToSuperview(newSuperview: UIView?) { | |
print("willMoveToSuperview") | |
} | |
override func didMoveToSuperview() { | |
print("didMoveToSuperview") | |
} | |
override func willMoveToWindow(newWindow: UIWindow?) { | |
print("willMoveToWindow") | |
} | |
override func didMoveToWindow() { | |
print("didMoveToWindow") | |
} | |
override func didAddSubview(subview: UIView) { | |
print("didAddSubview") | |
} | |
override func willRemoveSubview(subview: UIView) { | |
print("willRemoveSubview") | |
} | |
override func drawTextInRect(rect: CGRect) { | |
print("drawTextInRect") | |
} | |
} |
This file contains hidden or 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
class CustomView: UIViewController{ | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
print("viewDidLoad") | |
} | |
override func viewWillAppear(animated: Bool) { | |
super.viewDidDisappear(animated) | |
print("viewWillAppear") | |
} | |
override func viewDidAppear(animated: Bool) { | |
super.viewDidAppear(animated) | |
print("viewDidAppear") | |
} | |
override func viewWillDisappear(animated: Bool) { | |
super.viewWillDisappear(animated) | |
print("viewWillDisappear") | |
} | |
override func viewDidDisappear(animated: Bool) { | |
super.viewDidDisappear(animated) | |
print("viewDidDisappear") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment