Core-Data-In-Swift-Tutorial icon indicating copy to clipboard operation
Core-Data-In-Swift-Tutorial copied to clipboard

as! Incompaitability

Open CrazyPython opened this issue 9 years ago • 0 comments

Swift evolved and the following line let managedObjectContext = (UIApplication.sharedApplication().delegate as! AppDelegate).managedObjectContext now generates errors. After removing the ! after as, they are all gone.

CrazyPython avatar Mar 24 '15 21:03 CrazyPython