0
var objects:RLMCollection!
if selectedObject != nil {
objects = selectedObject.childobjects as RLMArray
} else {
objects = RealmObject.objectsInRealm(realm, "isFavourite == 1")
}
println(couplets.objectAtIndex(indexPath.row) as! RealmObject)
我有一個senario,我不知道是否需要使用RLMArray或RLMResults,所以我使用了RLMCollection。什麼是RealmSwift中的RLMCollection替換
我怎樣才能實現RealmSwift 0.93.1
嗨,你能提供一個代碼示例,瞭解如何做到這一點。 – raw3d