iOS-遇到的坑

2017-06-16  本文已影响57人  萧城x

1.cocoapod GPUImage里面的代码不加载它对应文件的资源图片


屏幕快照 2017-06-16 下午6.17.02.png

加入代码
<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>

上一篇 下一篇

猜你喜欢

热点阅读