UIImageView使用ECSlidingViewController停止动画

时间:2015-02-10 13:18:38

标签: ios iphone animation uiimageview ecslidingviewcontroller

我正在使用像这样的UIImageView在topviewcontroller中做简单动画......

        animatedImageView = [[UIImageView alloc] init];
        animatedImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
        animatedImageView.animationImages = [self imageArray];
        animatedImageView.animationDuration = 1.5f;
        animatedImageView.animationRepeatCount = 0;

        [parent addSubview: animatedImageView];

使用ECSlidingViewController作为侧边栏,一切正常,但如果我像这样添加pangesture ..

 UIGestureRecognizer *panG = [[UIPanGestureRecognizer alloc] initWithTarget:ECsidebarSlidingController action:@selector(detectPanGestureRecognizer:)];

        [self addGestureRecognizer:panG];

它会停止在顶视图控制器中发生UIImageView的动画。不知道如何进行,任何想法?

先谢谢。

0 个答案:

没有答案