title: Compiler not liking UIScrollViewDelegate with Swift
body: <p>I am getting an error, when implementing a <code>UIScrollView</code> into a  <code>UITableViewCell</code>.</p>
  
  <pre><code>class MyItemTableViewCell: UITableViewCell, UIScrollViewDelegate {
  
  ...  
  
  var scrollView: UIScrollView = {
          let scroll = UIScrollView()
          scroll.showsHorizontalScrollIndicator = false
          scroll.delegate = self
          return scroll;
          }()
  
  ...
  
  func scrollViewDidScroll(scrollView: UIScrollView!) {
       ...   
      }
  
  func scrollViewWillEndDragging(scrollView: UIScrollView!, velocity: CGPoint, targetContentOffset: CMutablePointer&lt;CGPoint&gt;) {
       ...   
      }
  ...
  }
  </code></pre>
  
  <p>The compiler gives me an error on the line <code>scroll.delegate = self</code> saying that the <code>Type MyItemTableViewCell does not conform to protocol ‘UIScrollViewDelegate’</code></p>
  
  <p>Never mind the fact, that the methods in the protocol are all documented as optional (<a href="https://developer.apple.com/library/prerelease/iOS/documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/index.html" rel="nofollow">https://developer.apple.com/library/prerelease/iOS/documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/index.html</a>), but I have two implemented. </p>
  
  <p>What does the compiler want from me?</p>
  
  <p>Thanks</p>