mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
+ Removed some Deprecation warnings.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user