title: Saving Y position of UIViewSubclass Does not Have member Named Error
body: <p>Im trying save the position of a <code>UIView</code> subclass that is moved via a <code>pan gesture recogniser</code> and needs to stay in that position</p>
  
  <p>The UIView Subclass <code>MoveSection</code></p>
  
  <pre><code> required init(coder aDecoder: NSCoder) {
          super.init(coder: aDecoder)
  
          var panGesture = UIPanGestureRecognizer(target: self, action:Selector("reposition:"))
          self.addGestureRecognizer(panGesture)
  
          let yPosition = self.frame.origin.y
  
      }
  
  
  
   func reposition(recognizer: UIPanGestureRecognizer) {
  
  
          let translation = recognizer.translationInView(self)
          if let view = recognizer.view { view.center = CGPoint(x:view.center.x + translation.x, y:view.center.y + translation.y)
  
          }
  
          recognizer.setTranslation(CGPointZero, inView: self)
  
          if recognizer.state == UIGestureRecognizerState.Ended {
  
              //Center view
             self.center.x = self.bounds.width/2
  
           }
  
      }
  </code></pre>
  
  <p>Save position in class </p>
  
  <pre><code>class ViewController
  
  @IBOutlet var reorderSectionOne: MoveSection!
  
  let positionDefaults = NSUserDefaults()
  positionDefaults.setObject(NSStringFromCGPoint(self.reorderSectionOne.yPosition), forKey: "pointPositionSectionOne")
  positionDefaults.synchronize()
  </code></pre>
  
  <p>Error: Does not have member named  yPosition</p>