previously i had custom tableviewcell and was loading from Nib.in that i have specified mode "Aspect to fit" for my imageview. but loading this Nib file was too slow. so i have started drawing content of uitablewviewcell. here is a code for what i am doing to draw image.
[image drawInRect:CGRectMake(10,10,80,100)];
but this does not give me same effect what i had in my Nib file. that is "Aspect to fit". image looks starched.so my question is how to achieve "Aspect to fit" mode using this code.
Thanks.