I am trying to fetching a JSON file which exist in my xcode resources using this code
JSON
xcode
-(void)readJsonFiles { NSString *str=[[[NSBu
There is the solution for Swift 3 :
//create a fil's path, decompose name and extension let path = Bundle.main.path(forResource: "anim-gif-1", ofType: "gif") //get the data asociated to this file let file = NSData(contentsOfFile: path!)