Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引导页怎么做适配 #4

Open
Li-Yudong opened this issue Nov 20, 2016 · 2 comments
Open

引导页怎么做适配 #4

Li-Yudong opened this issue Nov 20, 2016 · 2 comments

Comments

@Li-Yudong
Copy link

屏幕大小都不一样,怎么选择图片资源

@LYFGH
Copy link

LYFGH commented Jun 6, 2017

你好,我想问一下你在哪里设置动图的持续时间,我的gif图放上之后,有的手机会出现很卡的现象,能跟我说一下如何解决吗?

@lancelot9527
Copy link

lancelot9527 commented Jun 6, 2017

@LYFGH
动图持续时间:
DHGifImageOperation.m文件里。
- (id)initWithFrame:(CGRect)frame gifImageData:(NSData *)gifImageData { self = [super initWithFrame:frame]; if (self) { gifProperties = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCGImagePropertyGIFLoopCount] forKey:(NSString *)kCGImagePropertyGIFDictionary]; gif = CGImageSourceCreateWithData((CFDataRef)gifImageData, (CFDictionaryRef)gifProperties); count =CGImageSourceGetCount(gif); timer = [NSTimer scheduledTimerWithTimeInterval:0.06 target:self selector:@selector(play) userInfo:nil repeats:YES];/**< 0.12->0.06 */ [timer fire]; } return self;
@Li-Yudong
图片大小源适配:
一般都是@2x@3x适配。如果是图片展示方式自己看下源代码改改就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants