title: Crash on EXC_Breakpoint Scroll View
body: <p>This is a new problem I have been having ever since I've been updating my app for iOS 7. Everytime I launch the app on my device or simulator, I get this error code </p>
  
  <p>RecipeDetailViewController scrollViewDidScroll:]: message sent to deallocated instance 0x15746c40 and it crashed. </p>
  
  <p>I enabled NSZombie and that was the code it gave me. Before it was giving a exc_bad_access code. </p>
  
  <p>This is my code for ScrollViewDidSCroll</p>
  
  <pre><code>- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
  
  
      // Depending on how far the user scrolled, set the new offset.
      // Divide by a hundred so we have a sane value. You could adjust this
      // for different effects.
      // The larger you number divide by, the slower the shadow will change
  
      float shadowOffset = (scrollView.contentOffset.y/1);
  
      // Make sure that the offset doesn't exceed 3 or drop below 0.5
      shadowOffset = MIN(MAX(shadowOffset, 0), 0.6);
  
      //Ensure that the shadow radius is between 1 and 3
      float shadowRadius = MIN(MAX(shadowOffset, 0), 0.6);
  
  
  
      //apply the offset and radius
      self.navigationController.navigationBar.layer.shadowOffset = CGSizeMake(0, shadowOffset);
      self.navigationController.navigationBar.layer.shadowRadius = shadowRadius;
      self.navigationController.navigationBar.layer.shadowColor = [UIColor blackColor].CGColor;
      self.navigationController.navigationBar.layer.shadowOpacity = 0.2;
  }
  </code></pre>