     var x = self.layer.position.x + (anchorPoint.x - lastAnchor.x) * self.layer.bounds.size.width
     var y = self.layer.position.y + (anchorPoint.y - lastAnchor.y) * self.layer.bounds.size.height
     self.layer.position = CGPoint(x: x, y: y)
-    
+
     frame.size.height += self.arrowSize.height
     self.frame = frame
   }

  private func create() {
    var frame = self.contentView.frame
    frame.origin.x = self.arrowShowPoint.x - frame.size.width * 0.5
    
    var sideEdge: CGFloat = 0.0
    if frame.size.width < self.containerView.frame.size.width {
      sideEdge = self.sideEdge

    self.blackOverlay.frame = inView.bounds
    self.blackOverlay.backgroundColor = self.blackOverlayColor
    inView.addSubview(self.blackOverlay)

    self.blackOverlay.addTarget(self, action: "dismiss", forControlEvents: .TouchUpInside)

    self.containerView = inView
    self.contentView = contentView
    self.contentView.backgroundColor = UIColor.clearColor()
