Reputation: 2801
I am setting images to a UIImage
programmatically. But I want to also add a play button over that view. Think of Facebook in how there is a play button over the image. That is exactly what I am trying to figure out on what to do. Here is my setting of the UIImage
:
UIImage *img = [UIImage imageNamed:[NSString stringWithFormat:@"%d.jpg", indexPath.row]];
cell.photoView.image = img;
Suggestions, thoughts?
Upvotes: 0
Views: 512
Reputation: 2127
You can add playbutton either as a UIButton
or a UIImageView
and add as a subview to your photoview
.
[cell.photoView addSubview:urPlayButtonView];
Upvotes: 1