mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 11:00:07 +00:00
+ Removed some Deprecation warnings.
This commit is contained in:
parent
eba31ba279
commit
e0057f650e
@ -133,7 +133,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)close:(id)sender {
|
- (void)close:(id)sender {
|
||||||
[self dismissModalViewControllerAnimated:YES];
|
[self dismissViewControllerAnimated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)share:(id)sender {
|
- (void)share:(id)sender {
|
||||||
|
@ -393,7 +393,7 @@
|
|||||||
pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
|
pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
|
||||||
pickerController.delegate = self;
|
pickerController.delegate = self;
|
||||||
pickerController.editing = NO;
|
pickerController.editing = NO;
|
||||||
[self presentModalViewController:pickerController animated:YES];
|
[self presentViewController:pickerController animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - UIImagePickerControllerDelegate
|
#pragma mark - UIImagePickerControllerDelegate
|
||||||
@ -410,12 +410,12 @@
|
|||||||
[self.attachments addObject:newAttachment];
|
[self.attachments addObject:newAttachment];
|
||||||
}
|
}
|
||||||
|
|
||||||
[picker dismissModalViewControllerAnimated:YES];
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
||||||
[self refreshAttachmentScrollview];
|
[self refreshAttachmentScrollview];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
|
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
|
||||||
[picker dismissModalViewControllerAnimated:YES];
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)imageButtonAction:(UIButton *)sender {
|
- (void)imageButtonAction:(UIButton *)sender {
|
||||||
|
@ -110,13 +110,13 @@
|
|||||||
|
|
||||||
- (void)discard:(id)sender {
|
- (void)discard:(id)sender {
|
||||||
[self.delegate annotationControllerDidCancel:self];
|
[self.delegate annotationControllerDidCancel:self];
|
||||||
[self dismissModalViewControllerAnimated:YES];
|
[self dismissViewControllerAnimated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)save:(id)sender {
|
- (void)save:(id)sender {
|
||||||
UIImage *image = [self extractImage];
|
UIImage *image = [self extractImage];
|
||||||
[self.delegate annotationController:self didFinishWithImage:image];
|
[self.delegate annotationController:self didFinishWithImage:image];
|
||||||
[self dismissModalViewControllerAnimated:YES];
|
[self dismissViewControllerAnimated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIImage *)extractImage {
|
- (UIImage *)extractImage {
|
||||||
@ -192,7 +192,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-(BITImageAnnotation *)firstAnnotationThatIsNotBlur {
|
-(UIView *)firstAnnotationThatIsNotBlur {
|
||||||
for (BITImageAnnotation *annotation in self.imageView.subviews){
|
for (BITImageAnnotation *annotation in self.imageView.subviews){
|
||||||
if (![annotation isKindOfClass:[BITBlurImageAnnotation class]]){
|
if (![annotation isKindOfClass:[BITBlurImageAnnotation class]]){
|
||||||
return annotation;
|
return annotation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user