imageData=[NSData dataWithContentsOfURL:self.pdfFileUrl options:NSDataReadingMappedAlways error:&error];
NSLog(@"%@",[error localizedDescription]);
NSLog(@"%@",imageData);
in above code I get the error "The file “bg.png” couldn’t be opened because you don’t have permission to view it."
I can't convert bg.png file to NSData.