Skip to content

as! Incompaitability #3

@CrazyPython

Description

@CrazyPython

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions