Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.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
Iphone 当用户在屏幕上移动手指时,在轴上设置动画/旋转/平移视图_Iphone_Ios_Objective C_Core Animation - Fatal编程技术网

Iphone 当用户在屏幕上移动手指时,在轴上设置动画/旋转/平移视图

Iphone 当用户在屏幕上移动手指时,在轴上设置动画/旋转/平移视图,iphone,ios,objective-c,core-animation,Iphone,Ios,Objective C,Core Animation,我正在制作需要3D动画的动画应用程序,和普通动画一样,我们可以通过core动画/quartz core制作,但我需要3D和锚点动画 谁能给我提个建议吗?这样我就能找到解决办法 谢谢更改视图图层的主播点必然会影响位置。下面是对这个问题的极好解释 更改视图图层的锚点必然会影响位置。下面是对这个问题的极好解释 { CIImage*result=[CIImage-imageWithCGImage:[imageEdit.image-CGImage]]; CIFilter*filter=[CIFilter

我正在制作需要3D动画的动画应用程序,和普通动画一样,我们可以通过core动画/quartz core制作,但我需要3D和锚点动画

谁能给我提个建议吗?这样我就能找到解决办法


谢谢

更改视图图层的主播点必然会影响位置。下面是对这个问题的极好解释


更改视图图层的锚点必然会影响位置。下面是对这个问题的极好解释

{ CIImage*result=[CIImage-imageWithCGImage:[imageEdit.image-CGImage]]; CIFilter*filter=[CIFilter filterWithName:@“CIColorMonochrome”];//1 NSLog(@“%@,[CIFilter FILTERNAMESINCATORY:kCICategoryTileEffect]); [过滤器设置默认值];//2 [过滤器设置值:结果分叉:@“inputImage”]; [filter setValue:[NSNumber numberWithFloat:1.0]forKey:@“InputTensity”]; [filter setValue:[CIColor colorWithCGColor:[[UIColor greenColor]CGColor]]forKey:@“inputColor”];          结果=[filter valueForKey:kCIOutputImageKey];      CIContext*上下文=[CIContext contextWithOptions:nil]; CGImageRef resultRef=[context createCGImage:result fromRect:[result extent]]; UIImage*resultimage=[UIImage imageWithCGImage:resultRef]; CGImageRelease(resultRef);      imageEdit.image=resultimage; }

{ CIImage*result=[CIImage-imageWithCGImage:[imageEdit.image-CGImage]]; CIFilter*filter=[CIFilter filterWithName:@“CIColorMonochrome”];//1 NSLog(@“%@,[CIFilter FILTERNAMESINCATORY:kCICategoryTileEffect]); [过滤器设置默认值];//2 [过滤器设置值:结果分叉:@“inputImage”]; [filter setValue:[NSNumber numberWithFloat:1.0]forKey:@“InputTensity”]; [filter setValue:[CIColor colorWithCGColor:[[UIColor greenColor]CGColor]]forKey:@“inputColor”];          结果=[filter valueForKey:kCIOutputImageKey];      CIContext*上下文=[CIContext contextWithOptions:nil]; CGImageRef resultRef=[context createCGImage:result fromRect:[result extent]]; UIImage*resultimage=[UIImage imageWithCGImage:resultRef]; CGImageRelease(resultRef);      imageEdit.image=resultimage;
}

请查看此可能有帮助完整请查看此可能有帮助完整您好,谢谢,但我也想缩放和旋转视图,有人能给出解决方案吗?@kokx检查下面的答案,并检查下面的打击可能对您也有帮助….-如果你想改变颜色而不是使用下面的函数hi,谢谢你,但我也想缩放和旋转视图,有人能给出解决方案吗?@kokx检查下面的答案,并检查下面的打击可能对你也有帮助如果要更改颜色,请使用下面的函数
-(void) ColorMonochrome