Skip to content

Commit 14dbed4

Browse files
committed
Add super.viewDidAppear(animated) in all viewDidAppear methods
1 parent 3a2a075 commit 14dbed4

8 files changed

+8
-0
lines changed

iOSAnimationSample/ColorViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ColorViewController: UIViewController {
2424
}
2525

2626
override func viewDidAppear(animated: Bool) {
27+
super.viewDidAppear(animated)
2728
UIView.animateWithDuration(1, animations: {
2829
self.blueSquare.backgroundColor = UIColor.redColor()
2930
self.nameLabel.textColor = UIColor.whiteColor()

iOSAnimationSample/EasingViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class EasingViewController: UIViewController {
2727
}
2828

2929
override func viewDidAppear(animated: Bool) {
30+
super.viewDidAppear(animated)
3031
UIView.animateWithDuration(1, animations: {
3132
self.blueSquare.center.x = self.view.bounds.width - self.blueSquare.center.x
3233
})

iOSAnimationSample/OpacityViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class OpacityViewController: UIViewController {
2323
}
2424

2525
override func viewDidAppear(animated: Bool) {
26+
super.viewDidAppear(animated)
2627
UIView.animateWithDuration(1, animations: {
2728
self.blueSquare.alpha = 0.2
2829
})

iOSAnimationSample/PositionViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class PositionViewController: UIViewController {
2525
}
2626

2727
override func viewDidAppear(animated: Bool) {
28+
super.viewDidAppear(animated)
2829
// <null>
2930
// println(self.view.actionForLayer(self.view.layer, forKey: "position"))
3031

iOSAnimationSample/RepeatViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class RepeatViewController: UIViewController {
2828
}
2929

3030
override func viewDidAppear(animated: Bool) {
31+
super.viewDidAppear(animated)
3132
UIView.animateWithDuration(1, animations: {
3233
self.blueSquare.center.x = self.view.bounds.width - self.blueSquare.center.x
3334
})

iOSAnimationSample/RotationViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class RotationViewController: UIViewController {
3131
}
3232

3333
override func viewDidAppear(animated: Bool) {
34+
super.viewDidAppear(animated)
3435
self.spin()
3536
}
3637

iOSAnimationSample/ScaleViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ScaleViewController: UIViewController {
2323
}
2424

2525
override func viewDidAppear(animated: Bool) {
26+
super.viewDidAppear(animated)
2627
UIView.animateWithDuration(1, animations: {
2728
self.blueSquare.transform = CGAffineTransformMakeScale(2.0, 2.0)
2829
})

iOSAnimationSample/SpringViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SpringViewController: UIViewController {
2525
}
2626

2727
override func viewDidAppear(animated: Bool) {
28+
super.viewDidAppear(animated)
2829
UIView.animateWithDuration(1, animations: {
2930
self.blueSquare.center.x = self.view.bounds.width - self.blueSquare.center.x
3031
})

0 commit comments

Comments
 (0)