I used
`NSURL *urlA = [info valueForKey:@"PHImageFileURLKey"];`
but when i try to save image using URL then URL is nil.
`NSData *pngData =[NSData dataWithContentsOfURL:urlA options:NSDataReadingMapped error:nil];`
I used
`NSURL *urlA = [info valueForKey:@"PHImageFileURLKey"];`
but when i try to save image using URL then URL is nil.
`NSData *pngData =[NSData dataWithContentsOfURL:urlA options:NSDataReadingMapped error:nil];`
You can get the imageURL from PHContentEditingInput:
Swift:
Objective-C:
asset = Here you have to pass your PHAsset .
Check image that landscape mode or portrait mode
Add this permission into info.plist file