Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UIImageView停止使用ECSlidingViewController设置动画_Ios_Iphone_Animation_Uiimageview_Ecslidingviewcontroller - Fatal编程技术网

Ios UIImageView停止使用ECSlidingViewController设置动画

Ios UIImageView停止使用ECSlidingViewController设置动画,ios,iphone,animation,uiimageview,ecslidingviewcontroller,Ios,Iphone,Animation,Uiimageview,Ecslidingviewcontroller,我在topviewcontroller中使用UIImageView制作简单动画,如下所示 animatedImageView = [[UIImageView alloc] init]; animatedImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibl

我在topviewcontroller中使用UIImageView制作简单动画,如下所示

        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在俯视图控制器中的动画。不知道怎么处理,知道吗


提前感谢。

你能分享你的
UIPangestureRecognitizer
handler方法实现吗?当我通过平移打开侧栏时,我正在使用ECSlindingViewController(侧栏),侧栏停止动画。UIgestureRecognitzer*panG=[[UIPangestureRecognitzer alloc]initWithTarget:sidebarController操作:@selector(PangestureRecognitzer:)];[自我添加识别器:庞];