Permalink
Browse files

Fixed save png crash in IPA mode

  • Loading branch information...
1 parent 6fef648 commit cb638796f74dd4c9f2409b985cc450c61bedd574 @0xced committed Jan 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Classes/ArtworkDetailViewController.m
@@ -76,7 +76,8 @@ - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
- (IBAction) save
{
- id artworkViewController = [self.navigationController.viewControllers objectAtIndex:0];
+ NSUInteger artworkViewControllerIndex = [self.navigationController.viewControllers count] - 2;
+ id artworkViewController = [self.navigationController.viewControllers objectAtIndex:artworkViewControllerIndex];
[artworkViewController performSelector:@selector(saveImage:) withObject:imageInfo];
}

0 comments on commit cb63879

Please sign in to comment.