Could not find error "DataReadingMappedIfSafe" member

I am trying this code

 if let path = NSBundle.mainBundle().pathForResource(file as String, ofType: "sks") {
        var sceneData = NSData(contentsOfFile: path, options: .DataReadingMappedIfSafe, error: nil)!

      

After swift 2.0, you receive the error could not find the member 'DataReadingMappedIfSafe'

what to do?

+3


source to share





All Articles