ChatRightAudioCell detail

This commit is contained in:
nixzhu
2016-01-21 15:59:19 +08:00
parent 203d26467b
commit d2ac8be7ed
2 changed files with 8 additions and 2 deletions
@@ -705,7 +705,7 @@ class ConversationViewController: BaseViewController {
conversationCollectionView.registerClass(ChatRightAudioCell.self, forCellWithReuseIdentifier: chatRightAudioCellIdentifier)
conversationCollectionView.registerClass(ChatLeftVideoCell.self, forCellWithReuseIdentifier: chatLeftVideoCellIdentifier)
conversationCollectionView.registerClass(ChatRightVideoCell.self, forCellWithReuseIdentifier: chatRightAudioCellIdentifier)
conversationCollectionView.registerClass(ChatRightVideoCell.self, forCellWithReuseIdentifier: chatRightVideoCellIdentifier)
conversationCollectionView.registerClass(ChatLeftLocationCell.self, forCellWithReuseIdentifier: chatLeftLocationCellIdentifier)
conversationCollectionView.registerClass(ChatRightLocationCell.self, forCellWithReuseIdentifier: chatRightLocationCellIdentifier)
@@ -47,7 +47,8 @@ class ChatRightAudioCell: ChatRightBaseCell {
lazy var audioDurationLabel: UILabel = {
let label = UILabel()
label.textColor = UIColor.blackColor()
label.textAlignment = .Center
label.textColor = UIColor.whiteColor()
return label
}()
@@ -165,6 +166,11 @@ class ChatRightAudioCell: ChatRightBaseCell {
audioDurationLabel.text = ""
}
bubbleImageView.frame = audioContainerView.bounds
playButton.frame = CGRect(x: 6, y: 5, width: 30, height: 30)
sampleView.frame = CGRect(x: 41, y: 0, width: audioContainerView.bounds.width - 60, height: audioContainerView.bounds.height)
audioDurationLabel.frame = sampleView.frame
if let audioPlayer = YepAudioService.sharedManager.audioPlayer {
if audioPlayer.playing {
if let playingMessage = YepAudioService.sharedManager.playingMessage {