Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceso a la imagen de una mensaje Media #55

Open
dfsaetamar opened this issue Apr 26, 2018 · 1 comment
Open

Acceso a la imagen de una mensaje Media #55

dfsaetamar opened this issue Apr 26, 2018 · 1 comment

Comments

@dfsaetamar
Copy link

Su ayuda....
Deseo actualizar las imágenes de los mensajes media de imagen.

Pero al cambiar en la función configureCell la imagen del mensaje no se realiza en la vista de la configuración de TableView.

//MARK:Configure Cell Data
func configureCell(_ cell: ZHCMessagesTableViewCell, atIndexPath indexPath: IndexPath) -> Void {
let message: ZHCMessage = self.demoData.messages.object(at: indexPath.row) as! ZHCMessage;
if !message.isMediaMessage {
if (message.senderId == self.senderId()) {
cell.textView?.textColor = UIColor.black;
}else{
cell.textView?.textColor = UIColor.white;
}
}else{
cell.messageBubbleImageView?.image = "NuevaImagenParaElMensaje"
}
}

@zhuozhuo
Copy link
Owner

zhuozhuo commented May 9, 2018

If you want to customize the video display picture, you can refer to the ZHCVideoMediaItem class, it is best to inherit ZHCMediaItem rewrite Method -(UIView *) mediaView, where you can write any view you need to show. The core is the protocol ZHCMessageMediaData you can get to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants