Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve/swift 2.2 #119

Merged
merged 2 commits into from
Mar 29, 2016
Merged

Improve/swift 2.2 #119

merged 2 commits into from
Mar 29, 2016

Conversation

onmyway133
Copy link
Contributor

  • Use #selector

@@ -301,7 +301,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate {
self.focusImageView.transform = CGAffineTransformMakeScale(0.6, 0.6)
}, completion: { _ in
self.animationTimer = NSTimer.scheduledTimerWithTimeInterval(1, target: self,
selector: "timerDidFire", userInfo: nil, repeats: false)
selector: #selector(CameraView.timerDidFire), userInfo: nil, repeats: false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No CameraView

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RamonGilabert sadly, it has to be there, or "Call to method 'timerDidFire' in closure requires explicit 'self.' to make capture semantics explicit"

@RamonGilabert RamonGilabert merged commit 6b9f573 into master Mar 29, 2016
@RamonGilabert RamonGilabert deleted the improve/swift-2.2 branch March 29, 2016 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants