0
I have a table on coredata
with some fields, I can get the size of these values but I need the values of each field, I have this code:
var request:NSFetchRequest = NSFetchRequest(entityName: "Radar") //my table in coredata
let appDelegate:AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate)
let context:NSManagedObjectContext = appDelegate.managedObjectContext!
request.returnsObjectsAsFaults = false
var results:NSArray = context.executeFetchRequest(request, error: nil)!
println(results.count) //this is the count that i can do
But I need more, Radar
has these fields: Desc
, Lat
, Long
and I need your values to create a Annotation
.
you can accept your own answer.
– Otávio