我的ImageView旋转,但它旋转时,它不能识别自己的触摸.如果我通过ImageView可以识别触摸的代码创建一个按钮,你认为这没关系吗?
我想在一个动画中显示一个动画".gif" ImageView.现在,我设法它喜欢这里:点击
使用 UIImage+animatedGIF.但是,如果它开始动画2个GIF,它使用45Mb的内存,我认为这非常适用于2 gif的100kb.我能做什么?在这里开始动画的代码:
NSString *path = [[NSBundle mainBundle]pathForResource:@"animation" ofType:@"gif"];
NSURL *url = [[NSURL alloc] initFileURLWithPath:path];
_testImage.image = [UIImage animatedImageWithAnimatedGIFURL:url];
_test1.image = [UIImage animatedImageWithAnimatedGIFURL:url];
Run Code Online (Sandbox Code Playgroud)