title: Drawing NSString in CGRect
body: <p>I'm trying to draw a NSString at the bottom of my CGRect. So far I've been able to have the text to be at the top centered but I need it to be positioned at the bottom. I also tried DrawAtPoint but that didn't work. Here's my code that I currently have: 
  <i>
  UIGraphicsBeginImageContext(img.size);</p>
  
  <pre><code>CGRect aRectangle = CGRectMake(0,0, img.size.width, img.size.height);
  [img drawInRect:aRectangle];
  
  [[UIColor whiteColor] set];
  NSInteger fontSize = 25;
  UIFont *font = [UIFont boldSystemFontOfSize: fontSize];
  
  [text drawInRect:aRectangle withFont:font lineBreakMode:NSLineBreakByWordWrapping alignment:NSTextAlignmentCenter];
  
  
  
  UIImage *theImage=UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p></i></p>