These are chat archives for correa-brian/milkshake

27th
Jun 2016
Katrina
@katrinar
Jun 27 2016 17:38
let padding = CGFloat(6)
        let btnWidth = CGFloat(80)
        height = height-2*padding

        let cameraBtn = UIButton(type: .Custom)
        cameraBtn.frame = CGRect(x: padding, y: padding, width: height, height: height)
        cameraBtn.backgroundColor = .redColor()
        self.bottomView.addSubview(cameraBtn)

        self.messageField = UITextField(frame: CGRect(x: padding+40, y: padding, width: width-2*padding-btnWidth-40, height: height))
        self.messageField.borderStyle = .RoundedRect
        self.messageField.placeholder = "Post a message"
        self.messageField.delegate = self
        self.bottomView.addSubview(self.messageField)