// Checking for authorization
PHAuthorizationStatus status = [PHPhotoLibrary authorizationStatus];
if (status == PHAuthorizationStatusAuthorized) {
    // Access has been granted.
}
else if (status == PHAuthorizationStatusDenied) {
    // Access has been denied.
}
else if (status == PHAuthorizationStatusNotDetermined) {
    // Access has not been determined.
    [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
        if (status == PHAuthorizationStatusAuthorized) {
            // Access has been granted.
        }
        else {
            // Access has been denied.
        }
    }];
}
else if (status == PHAuthorizationStatusRestricted) {
    // Restricted access - normally won't happen.
}
I have set the keys in Info.plist both for Camera and Photos still getting the same result.