Putting current time into label

前端 未结 3 524
面向向阳花
面向向阳花 2021-01-03 07:44

Ii am trying to get date and time using date but when i run application it takes first time executed application time and date in short time is not changed.

         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 08:24

    You have a bug in your code: Instead of [Dateformat setDateFormat:@"HH:MM"]; it should be [Dateformat setTimeFormat:@"HH:MM"];

提交回复
热议问题