当前位置: 动力学知识库 > 问答 > 编程问答 >

Create Timestamps on uitableview every 24 hours iOS like WhatsUp or Viber

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: