小编use*_*648的帖子

触摸事件在旋转时单击UIImageView

我的ImageView旋转,但它旋转时,它不能识别自己的触摸.如果我通过ImageView可以识别触摸的代码创建一个按钮,你认为这没关系吗?

xcode objective-c ios

2
推荐指数
1
解决办法
89
查看次数

UIImageView中的动画gif

我想在一个动画中显示一个动画".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)

objective-c animated-gif uiimageview ios

0
推荐指数
2
解决办法
1万
查看次数

标签 统计

ios ×2

objective-c ×2

animated-gif ×1

uiimageview ×1

xcode ×1