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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top