Question

Hi there i am creating a message app similar to viber and whatsup i wanted to know if i can create timestamps for tableview or tableviewcell something like this today, yesterday then example 2 May 2014, 1 May 2014 , 25 Apr 2014. i created and im done with each cell timestamps that show the hour but i dont know how can i possibly create a group timestamp header which apears every 24 hours

so basicly it updates as header or something every 24 hours any ideas ?

Thanks in advance

Was it helpful?

Solution

Here's a well documented class to get relative date string from a date,

https://github.com/kevinlawler/NSDate-TimeAgo

It's easy to implement and add into project, also supports multiple languages.

Read everything there, it's what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top