I'm using this code to create a filled rectangle with text and adding it to an image
CGRect textRect = CGRectMake(0, p_point.y, p_image.size.width+15, p_image.size.height+10)
[[UIColor colorWithRed:(70/255.0) green:(70/255.0) blue:(70/255.0) alpha:1] set];
CGContextFillRect(UIGraphicsGetCurrentContext(), textRect);
[[UIColor whiteColor] set];
[p_text drawInRect:textRect withFont:font lineBreakMode:NSLineBreakByTruncatingTail alignment:NSTextAlignmentCenter];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
i wish the rectangle will have round corners...