문제

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