title: error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector
body: <p>App crashed in the 2nd NSLog line.</p>
  
  <p>Debug statement:
  (lldb) po textView.superview
  error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
  The process has been returned to the state before expression evaluation.
  (lldb) </p>
  
  <p>Can you tell me what could be the problem.</p>
  
  <pre><code>- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
      if ([keyPath isEqualToString:AlertContentSizeKeyPath]) {
          UITextView * textView = object;
          NSLog(@"textView :: %@", textView);
          NSLog(@"bounds :: %f", [textView bounds].size.height);
          CGFloat topCorrect = ([textView bounds].size.height - [textView contentSize].height * [textView zoomScale])/2.0;
          topCorrect = ( topCorrect &lt; 0.0 ? 0.0 : topCorrect );
          textView.contentOffset = (CGPoint){.x = 0, .y = -topCorrect};
      }
  }
  </code></pre>
  
  <p>Thanks</p>