combining 2 images For accessory View
<p>I have 2 images which I want to join side by side and show in accessory view.</p>

<pre><code> CGSize itemSize = CGSizeMake(40, 40);
 UIGraphicsBeginImageContext(itemSize);
    CGRect imageRect = CGRectMake(20.0, 20.0, 20, 20);
    [[UIImage imageNamed:@"homesmall.png"] drawInRect:imageRect];
    CGRect imageRect1 = CGRectMake(0.0, 0.0, 20, 20);
    [[UIImage imageNamed:@"update.png"] drawInRect:imageRect1];

    UIImageView *statusImageView = (UIImageView *) cell.accessoryView;

    statusImageView.image= UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();
</code></pre>

<p>I am trying to put both the images side by side but somehow nothing in coming in accessory view.    </p>
