+ 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

@ -133,7 +133,7 @@
}
- (void)close:(id)sender {
[self dismissModalViewControllerAnimated:YES];
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)share:(id)sender {

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 {

View File

@ -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;