1.cocoapod GPUImage里面的代码不加载它对应文件的资源图片
在
加入代码
<pre>
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_resource "GPUImage/framework/Resources/lookup.png"
install_resource "GPUImage/framework/Resources/lookup_amatorka.png"
install_resource "GPUImage/framework/Resources/lookup_miss_etikate.png"
install_resource "GPUImage/framework/Resources/lookup_soft_elegance_1.png"
install_resource "GPUImage/framework/Resources/lookup_soft_elegance_2.png"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_resource "GPUImage/framework/Resources/lookup.png"
install_resource "GPUImage/framework/Resources/lookup_amatorka.png"
install_resource "GPUImage/framework/Resources/lookup_miss_etikate.png"
install_resource "GPUImage/framework/Resources/lookup_soft_elegance_1.png"
install_resource "GPUImage/framework/Resources/lookup_soft_elegance_2.png"
fi
</pre>
2.使用CAAnimationGroup组合关键帧动画,设置delegate,造成VC无法释放问题
在代理方法写
<pre>
-
(void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag
{if (flag) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//解决 使用CAAnimationGroup组合关键帧动画,设置delegate,造成VC无法释放问题
[self.animationView.layer removeAllAnimations];
});
}
}
</pre>