TakephotosView::~TakephotosView()
{
// DeInit();
-
creamAnimator->Stop();
smileAnimator->Stop();
FreeImagePathsArray(creamimagePaths, 50);
FreeImagePathsArray(smileimagePaths, 27);
+ ReleaseImageAnimatorSource(creamimageAnimatorInfo,50);
+ ReleaseImageAnimatorSource(smileimageAnimatorInfo,27);
UIViewGroup *tmpGroup = dynamic_cast<UIViewGroup *>(container_);
UIViewGroup::RemoveAndDeleteAllRecursively(tmpGroup);
// 初始化图片数组以及动画
creambasePath = "/user/res/takephotos/cream/";
creamimagePaths = CreateImagePathsArray(creambasePath.c_str(), 50);
- InitImageAnimatorSource(creamAnimator, creamimagePaths, 50, 163, 103, 140, 140, "imageAnimator", 100);
+ InitImageAnimatorSource(creamAnimator, creamimageAnimatorInfo, creamimagePaths, 50, 163, 103, 140, 140, "imageAnimator", 100);
creamView->Add(creamAnimator);
creamView->Add(labeltitle_);
// 初始化图片数组以及动画 {修改为统一动画}
smilebasePath = "/user/res/takephotos/cream/";
smileimagePaths = CreateImagePathsArray(smilebasePath.c_str(), 27);
- InitImageAnimatorSource(smileAnimator, smileimagePaths, 27, 163, 140, 140, 140, "imageAnimator", 100);
+ InitImageAnimatorSource(smileAnimator, smileimageAnimatorInfo, smileimagePaths, 27, 163, 140, 140, 140, "imageAnimator", 100);
takeView->Add(smileAnimator);
takeView->Add(labeltake_);