imageData=[NSData dataWithContentsOfURL:self.pdfFileUrl options:NSDataReadingMappedAlways error:&error];
NSLog(@"%@",[error localizedDescription]);
NSLog(@"%@",imageData);
in the above code I get the error message "The file" bg.png "cannot be opened because you do not have permission to view it."
I can not convert the bg.png file to NSData.
source
share