     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()

    }
    self.addSubview(self.contentView)
    self.containerView.addSubview(self)
    
    self.transform = CGAffineTransformMakeScale(0.0, 0.0)
    UIView.animateWithDuration(self.animationIn, delay: 0,
      usingSpringWithDamping: 0.7,

  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
