title: drawRect is not being called
body: <p>I need to draw an image in a rectangle so for that am using drawRect method.i observed that it is not being called.The output i can see only the blank screen.Am using MAC OS and i need to test the App in Iphone OS 3+.Please can anyone solve my problem.Here is my code:</p>
  
  <pre><code>    -(IBAction)calling
    {
   int a=0;
   a=a+1;
   [self.view setNeedsDisplay];  //InRect:CGRectMake(78, 43, 200, 138)];
  
    }
  
   - (void)drawRect:(CGRect)rect {
      UIImage *myImage = [UIImage imageNamed:@"btbp.jpg"];
  
      CGRect imageRect = CGRectMake(10, 10, 300, 400);
  
      [myImage drawInRect:imageRect];
  [self.view setNeedsDisplay];
  
      [myImage release];
   }
  </code></pre>
  
  <p>i donno where i was wrong:(</p>