From 0c49ebfbd8ea243193892fbc4436394c185c5bc0 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Sat, 12 Sep 2015 16:06:50 +0800 Subject: [PATCH 1/2] fix playButton.tintColor may changed after present PickLocation --- Yep/Views/Cells/ChatLeftAudio/ChatLeftAudioCell.swift | 1 + Yep/Views/Cells/ChatRightAudio/ChatRightAudioCell.swift | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Yep/Views/Cells/ChatLeftAudio/ChatLeftAudioCell.swift b/Yep/Views/Cells/ChatLeftAudio/ChatLeftAudioCell.swift index a785a327..b67f9ab5 100644 --- a/Yep/Views/Cells/ChatLeftAudio/ChatLeftAudioCell.swift +++ b/Yep/Views/Cells/ChatLeftAudio/ChatLeftAudioCell.swift @@ -80,6 +80,7 @@ class ChatLeftAudioCell: ChatBaseCell { playButton.userInteractionEnabled = false playButton.tintColor = UIColor.darkGrayColor() + playButton.tintAdjustmentMode = .Normal bubbleImageView.userInteractionEnabled = true let tap = UITapGestureRecognizer(target: self, action: "tapMediaView") diff --git a/Yep/Views/Cells/ChatRightAudio/ChatRightAudioCell.swift b/Yep/Views/Cells/ChatRightAudio/ChatRightAudioCell.swift index aa2783c2..c5d95772 100644 --- a/Yep/Views/Cells/ChatRightAudio/ChatRightAudioCell.swift +++ b/Yep/Views/Cells/ChatRightAudio/ChatRightAudioCell.swift @@ -63,6 +63,8 @@ class ChatRightAudioCell: ChatRightBaseCell { audioDurationLabel.textColor = UIColor.whiteColor() playButton.userInteractionEnabled = false + playButton.tintColor = UIColor.whiteColor() + playButton.tintAdjustmentMode = .Normal bubbleImageView.userInteractionEnabled = true let tap = UITapGestureRecognizer(target: self, action: "tapMediaView") From f2b006c239098f3b4e678fd92b37d102e14b635a Mon Sep 17 00:00:00 2001 From: nixzhu Date: Sat, 12 Sep 2015 16:10:11 +0800 Subject: [PATCH 2/2] fix pick skill arrow color --- Yep/Views/Buttons/SkillCategoryButton.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Yep/Views/Buttons/SkillCategoryButton.swift b/Yep/Views/Buttons/SkillCategoryButton.swift index 0c5bc81b..79687410 100644 --- a/Yep/Views/Buttons/SkillCategoryButton.swift +++ b/Yep/Views/Buttons/SkillCategoryButton.swift @@ -59,6 +59,8 @@ class SkillCategoryButton: UIButton { let imageView = UIImageView() imageView.contentMode = .Center imageView.image = UIImage(named: "icon_skill_category_arrow") + imageView.tintColor = UIColor.whiteColor() + imageView.tintAdjustmentMode = .Normal return imageView }()