This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cell: UITableViewCell { | |
override func drawRect(rect: CGRect) { | |
var bubbleSpace = CGRectMake(20.0, self.bounds.origin.y, self.bounds.width - 20, self.bounds.height) | |
let bubblePath1 = UIBezierPath(roundedRect: bubbleSpace, byRoundingCorners: .TopLeft | .TopRight | .BottomRight, cornerRadii: CGSize(width: 20.0, height: 20.0)) | |
let bubblePath = UIBezierPath(roundedRect: bubbleSpace, cornerRadius: 20.0) | |
UIColor.greenColor().setStroke() | |
UIColor.greenColor().setFill() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class MsgVC: JSQMessagesViewController { | |
var msg:JSQMessage! | |
var outBubble:JSQMessageBubbleImageDataSource! | |
override func viewDidLoad() { | |
initThisView() | |
NewerOlder