         mainView.addSubview(messageText)
         mainView.addSubview(dateText)
         mainView.addSubview(statusView)
-        
-//        bubble.addGestureRecognizer(UILongPressGestureRecognizer(target: self, action: "textDidLongPress"))
-//        bubble.userInteractionEnabled = true
     }
     
     required init(coder aDecoder: NSCoder) {

        UIPasteboard.generalPasteboard().string = (bindedMessage!.getContent() as! AMTextContent).getText()
    }
    
//    func textDidLongPress() {
//        self.becomeFirstResponder()
//        var menuController = UIMenuController.sharedMenuController()
//        menuController.setTargetRect(bubble.frame, inView:bubble)
//        menuController.menuItems = [UIMenuItem(title: "Copy", action: "copy")]
//        menuController.setMenuVisible(true, animated: true)
//    }
//    
    func attributedLabel(label: TTTAttributedLabel!, didLongPressLinkWithURL url: NSURL!, atPoint point: CGPoint) {
        UIApplication.sharedApplication().openURL(url)
    }

    
    private static let dateFont = UIFont(name: "HelveticaNeue-Italic", size: 11)!
    
    let messageText = TTTAttributedLabel(frame: CGRectZero)
    let statusView = UIImageView();
    let senderNameLabel = UILabel();
    var needRelayout = true
