Response first

This commit is contained in:
kevinzhow
2015-04-02 09:06:43 +08:00
parent 09922b330f
commit eb4c502747
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -19,10 +19,11 @@ class YepButton: UIButton {
var yepTouchesMoved : (() -> ())?
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
super.touchesBegan(touches, withEvent: event)
if let yepTouchBegin = yepTouchBegin {
yepTouchBegin()
}
super.touchesBegan(touches, withEvent: event)
}
override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
@@ -321,6 +321,7 @@ class MessageToolbar: UIToolbar {
func trySendVoiceMessageCancel() {
if let textSendAction = voiceSendCancelAction {
println("Cancel")
voiceRecordButton.backgroundColor = UIColor.whiteColor()
textSendAction(messageToolBar: self)
}