How to center a View (ImageView) inside a UITableViewCell

No comments on How to center a View (ImageView) inside a UITableViewCell

Written by

in

<br />
playImage.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;<br />
[cell.contentView addSubview:playImage];<br />
playImage.center = CGPointMake(cell.contentView.bounds.size.width/2,cell.contentView.bounds.size.height/2);<br />

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *