i am new to realm with swift and just installed the new version of it and the objectAtIndex is not available like it used to be in the version before it. i am working with iOS 8 and Xcode 6 On realm 0.92 how do you get the object at index.
this is how i used to get it on realm .9
var RealmX = RealmDB.allObjects()
var RealmObject = RealmX.objectAtIndex(0) as! RealmDB
println("\(RealmObject)")
i went through the documentation on realm, and can't seem to find the part where this is translated to the new version
我相信你可以这样做
var RealmObject = RealmX[0]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.