issues
search
panghaijiao
/
HJCornerRadius
A category for UIImageView with support for cornerRadius automatically
http://www.olinone.com/?p=484
464
stars
66
forks
source link
未生效
#16
Closed
chaoxcheng
closed
6 years ago
chaoxcheng
commented
6 years ago
(UIImageView
)playVideoBackgroundImageView { if (!_playVideoBackgroundImageView) { _playVideoBackgroundImageView = [[UIImageView alloc] init]; _playVideoBackgroundImageView.backgroundColor = kViceSeparatorColor; _playVideoBackgroundImageView.contentMode = UIViewContentModeScaleAspectFit; _playVideoBackgroundImageView.clipsToBounds = YES; _playVideoBackgroundImageView.aliCornerRadius = 10; _playVideoBackgroundImageView.hidden = YES; _playVideoBackgroundImageView.userInteractionEnabled = YES; UITapGestureRecognizer
tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickPlayVideoBackgroundImageViewAction)]; [_playVideoBackgroundImageView addGestureRecognizer:tap]; } return _playVideoBackgroundImageView; } 这样写, 图片不能显示, 只有背景颜色了
chaoxcheng
commented
6 years ago
hidden 在后续设为NO了