Unable to retrieve updatedAt or createdAt values from Parse objects

后端 未结 3 934
感动是毒
感动是毒 2021-02-07 16:11

I\'m an experienced Android developer trying to get a prototype iOS app running using the Parse service and sdk (https://www.parse.com/).

It\'s great, and i can get all

3条回答
  •  盖世英雄少女心
    2021-02-07 16:36

    For Swift:

    let dateUpdated = object.updatedAt! as NSDate
    let dateFormat = NSDateFormatter()
    dateFormat.dateFormat = "EEE, MMM d, h:mm a"
    cell.updatedAtLabel.text = NSString(format: "%@", dateFormat.stringFromDate(dateUpdated))
    

提交回复
热议问题