I have table view cells with cell image and text label and detailed label.
Problem is cell image is too near to edge of cell(to the left). I want to put some space between edge and cell image. i.e. wants to move image bit away from corner. I have moved that with creating subview and putting image in that. But problem is it now overcome cell text and detailed text as well. I want to move cell text and detailed label to the right as well.
How can i do that?
For moving cell image, i am using below code:
UIImageView *imageview=[UIImageView alloc]]init];
imageView.frame=CGRectMake(10,0,40,40);
[[cell.contentView]addsubview:imageView];
But i want to move text and detailed text label as well.
You don’t need that image view to move the image.
Subclass
UITableViewCelland add the following method to the subclass:Change
10to whatever you see fit.