Permalink
Browse files

Removed warning by not using deprecated methods

  • Loading branch information...
1 parent c90b9bb commit 0186056304ccb2e281edf12a3b44cf0c96238193 @brutella committed Jan 2, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 Classes/ELCImagePickerController.m
  2. +2 −2 Classes/ELCImagePickerDemoViewController.m
@@ -39,7 +39,7 @@ -(void)selectedAssets:(NSArray*)_assets {
}
[self popToRootViewControllerAnimated:NO];
- [[self parentViewController] dismissModalViewControllerAnimated:YES];
+ [[self parentViewController] dismissViewControllerAnimated:YES completion:^{}];
if([delegate respondsToSelector:@selector(elcImagePickerController:didFinishPickingMediaWithInfo:)]) {
[delegate performSelector:@selector(elcImagePickerController:didFinishPickingMediaWithInfo:) withObject:self withObject:[NSArray arrayWithArray:returnArray]];
@@ -32,7 +32,7 @@ -(IBAction)launchController {
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info {
- [self dismissModalViewControllerAnimated:YES];
+ [self dismissViewControllerAnimated:YES completion:^{}];
for (UIView *v in [scrollview subviews]) {
[v removeFromSuperview];
@@ -59,7 +59,7 @@ - (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPic
- (void)elcImagePickerControllerDidCancel:(ELCImagePickerController *)picker {
- [self dismissModalViewControllerAnimated:YES];
+ [self dismissViewControllerAnimated:YES completion:^{}];
}
- (void)didReceiveMemoryWarning {

0 comments on commit 0186056

Please sign in to comment.