我想从本地数据中获取由createdAt排序的结果,但是本地数据中的createdAt为nil。我该怎么办?
NG(createdAt为零)
object.pinInBackgroundWithBlock { (succeeded, error) in
var query = PFQuery(className: "Messages")
query.whereKey("createdAt", greaterThanOrEqualTo : object.createdAt!)
行
object.saveInBackgroundWithBlock { (succeeded, error) in
var query = PFQuery(className: "Messages")
query.whereKey("createdAt", greaterThanOrEqualTo : object.createdAt!)