彦彰
彦彰
YYImage 加载gif图的时候 内存占用要比SDImage的低,但是在gif图加载完毕后 cpu的占用一直持续,内部的CGContextDrawImage一直在调用,有什么解决方案吗?
原始控件 [self.testLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(10); make.top.mas_equalTo(200); make.width.mas_equalTo(200); make.height.mas_equalTo(200); }]; 平移动画: [UIView animateWithDuration:5.0f animations:^{ [self.testLabel mas_updateConstraints:^(MASConstraintMaker *make) { make.height.mas_equalTo(100); }]; [self.view layoutIfNeeded]; [self.view.superview layoutIfNeeded]; }]; 控件会错位平移
设置好了 TextHighlightRange UIView animation 的option为 UIViewAnimationOptionAllowUserInteraction highlight部分点击无效 如果去掉动画 highlight部分点击有效