Changes

IOS 8 Databases in Swift using Core Data

5 bytes added, 16:44, 14 April 2015
no edit summary
<pre>
let managedObjectContext = (UIApplication.sharedApplication().delegate
as ! AppDelegate).managedObjectContext
</pre>
var results = managedObjectContext?.executeFetchRequest(request,
error: &error)
let match = results[0] as ! NSManagedObject
let nameString = match.valueForKey("name") as ! Stringlet addressString = match.valueForKey("address") as ! Stringlet phoneString = match.valueForKey("phone") as ! String
</pre>