iOS UIImagePickerController result image orientation after shot

Hi guys,

why when you take a photo programmatically, your result is a photo rotated 90° degrees?

also in this contest:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info{
    UIImage *chosenImage = info[UIImagePickerControllerOriginalImage];  <----here the photo is rotated of 90° degrees
    NSLog(@"eccomi quà");

when you save the photo, it’s rotated 90° degrees

Why? and how I fix it?