Skip to content

Commit

Permalink
Get scroll position, innit.
Browse files Browse the repository at this point in the history
  • Loading branch information
andytlr committed Oct 28, 2015
1 parent de5c32e commit be0ed5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dropbox-carousel/WelcomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

class WelcomeViewController: UIViewController {
class WelcomeViewController: UIViewController, UIScrollViewDelegate {

@IBOutlet weak var scrollView: UIScrollView!

Expand All @@ -20,6 +20,8 @@ class WelcomeViewController: UIViewController {
// Do any additional setup after loading the view.

scrollView.contentSize = imageView.frame.size

scrollView.delegate = self
}

override func didReceiveMemoryWarning() {
Expand All @@ -30,6 +32,10 @@ class WelcomeViewController: UIViewController {
@IBAction func tapSignInButton(sender: AnyObject) {

}

func scrollViewDidScroll(scrollView: UIScrollView) {
print(scrollView.contentOffset.y)
}

/*
// MARK: - Navigation
Expand Down

0 comments on commit be0ed5d

Please sign in to comment.