KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to display so many images in table cells. I knew two methods to show an image. One is creating an instance to UIImageView and show it CGRect rect=CGRectMake(x,y,width,height); UIImageView *image=[[UIImageView alloc]initWithFrame:rect]; [image setImage:[UIImage imageNamed:@"sample.jpg"]]; Another method is, CGRect rect=CGRectMake(x,y,width,height); [[UIImage imageNamed:@"sample.jpg"] drawInRect:rect]; Now, my question is, what is the difference between these two? Which one is efficient? Or someother function is available better than this? Thanks in advance....
Tags (comma-separated)
Save Edits
Cancel