For my Current project I'd like to fill a TableView from my CoreData DB.
I've a Class named Movies(movieNAme, cinemaName, rate)
Thanks to this function :
var appDel:AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate
let context:NSManagedObjectContext = appDel.managedObjectContext
var request:NSFetchRequest = NSFetchRequest(entityName: "Movies")
myMovies = context.executeFetchRequest(request, error: nil)
However, I'd like to specify the type of the objects in this array(I want an Array of object Movie)
I've tried that
var myMovies:Array<Films> ...
but with the Array type, I don't have access to the objectAtIndex method
Any ideas to solve this issue ?
Thanks