mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-16 02:20:07 +00:00
+ Removed some Deprecation warnings.
This commit is contained in:
parent
eba31ba279
commit
e0057f650e
@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
- (void)close:(id)sender {
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (void)share:(id)sender {
|
||||
|
@ -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 {
|
||||
|
@ -110,13 +110,13 @@
|
||||
|
||||
- (void)discard:(id)sender {
|
||||
[self.delegate annotationControllerDidCancel:self];
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (void)save:(id)sender {
|
||||
UIImage *image = [self extractImage];
|
||||
[self.delegate annotationController:self didFinishWithImage:image];
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (UIImage *)extractImage {
|
||||
@ -192,7 +192,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-(BITImageAnnotation *)firstAnnotationThatIsNotBlur {
|
||||
-(UIView *)firstAnnotationThatIsNotBlur {
|
||||
for (BITImageAnnotation *annotation in self.imageView.subviews){
|
||||
if (![annotation isKindOfClass:[BITBlurImageAnnotation class]]){
|
||||
return annotation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user