+ Removed some Deprecation warnings.

This commit is contained in:
moritz haarmann
2014-03-19 13:14:38 +01:00
parent eba31ba279
commit e0057f650e
3 changed files with 7 additions and 7 deletions

View File

@@ -393,7 +393,7 @@
pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
pickerController.delegate = self;
pickerController.editing = NO;
[self presentModalViewController:pickerController animated:YES];
[self presentViewController:pickerController animated:YES completion:nil];
}
#pragma mark - UIImagePickerControllerDelegate
@@ -410,12 +410,12 @@
[self.attachments addObject:newAttachment];
}
[picker dismissModalViewControllerAnimated:YES];
[picker dismissViewControllerAnimated:YES completion:nil];
[self refreshAttachmentScrollview];
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
[picker dismissModalViewControllerAnimated:YES];
[picker dismissViewControllerAnimated:YES completion:nil];
}
- (void)imageButtonAction:(UIButton *)sender {