Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)layoutSubviews
- {
- [super layoutSubviews];
- self.myImageView.layer.cornerRadius = self.myImageView.frame.size.width/2.0f;
- }
- self.myImageView.image = image;
- [self.myImageView setNeedsLayout];
- [self setNeedsLayout];
- [self layoutIfNeeded];
- - (void)awakeFromNib
- {
- [super awakeFromNib];
- [self.myImageView setNeedsLayout];
- [self setNeedsLayout];
- [self layoutIfNeeded];
- }
- - (void)layoutSubviews
- {
- [super layoutSubviews];
- self.myImageView.layer.cornerRadius = self.myImageView.frame.size.width/2.0f;
- self.myImageView.clipsToBounds = TRUE;
- }
- - (void)awakeFromNib
- {
- [super awakeFromNib];
- [self setNeedsLayout];
- [self layoutIfNeeded];
- }
Add Comment
Please, Sign In to add comment