I have a function, which adds badge on cell:
unreadMessagesCountBadge(cell, forCount: messagesCount)
but I do not know, how to detect cell what I need for adding this badge on it?
For example, I have a users list and one of my contacts sent me a message. How to detect this cell, to add near this contact my badge 1
?
UPDATE
I detect that new message received in another file and I need to call this function from there and update in my cellForRowAtIndexPath
. I'm confused =/