 
 
     func showPrompt(point: CGPoint, targetView: UIView) {
-        print("prompt")
         let controller = UIAlertController(title: "Here?", message: nil, preferredStyle: .Alert)
         controller.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: { (action) in
             self.hideMarkerView()

    }



    func handleLongPressGesture(gesture: UILongPressGestureRecognizer) {
        if gesture.state == .Began {
            print("pressed")
            moveMarkerView( gesture.locationInView(view) )
            showMarkerView()
        }

        if gesture.state == .Changed {
            print("dragging")
            moveMarkerView( gesture.locationInView(view) )
        }

        if gesture.state == .Ended {
            print("released")
            let targetView = gesture.view!
            let point = gesture.locationInView(targetView)
            if targetView.bounds.contains(point) {


        textView.layoutManager.delegate = self
        textView.delegate = self

        attachmentManager = AztecAttachmentManager(textView: textView, delegate: self)

        hideMarkerView()
    }


    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        textView.attributedText = buildAttributedString()
        attachmentManager.updateAttachmentLayout()
    }


