title: Showing another view from delegate method
body: <p>I have 2 classes: class A have a declared protocol, which i call in class B. I send image from class A to class B using delegate and in class B do something with this image under method of protocol from class A. Then i want to make new view in the end of this protocol's method inside class B. I know tese 2 lines of invoking new view is working because if i call it in class A (eg in viewDidLoad) then it's working. New view is showing in this case everything i want. However when i call it from protocol's method it isn't working. How to show this view?</p>
  
  <p>class A.h</p>
  
  <pre><code>@protocol AViewControllerDelegate&lt;NSObject&gt;
  @optional
  - (void) tappedImage:(NSNumber*)tag;
  @end
  </code></pre>
  
  <p>class A.m</p>
  
  <pre><code>[self dismissModalViewControllerAnimated:YES];
  if ([self.delegatee respondsToSelector:@selector(tappedImage:)])
      [self.delegatee performSelector:@selector(tappedImage:) withObject: [NSNumber numberWithInt:imageView.tag]];
  </code></pre>
  
  <p>class B.m</p>
  
  <pre><code>- (void) tappedImage:(NSNumber*)tag{
  UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed: [NSString stringWithFormat: @"%@.png",tag]]];
  
  PictureEditingViewController *dvController = [[PictureEditingViewController alloc] initWithPicture: imgView.image];
  [self presentModalViewController:dvController animated:YES];
  //[dvController release]; dvController = nil;
  }
  </code></pre>
  
  <p>PictureEditingViewController is called, i see NSLog which i have inside viewDidLoad there. However nothing is showing on iphone screen, probably the new view is 'under' the old view.
  How to set the new view ON the top of the old view..?</p>
  
  <p>Thanks for any help^^</p>