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

pod导入时,图片资源无法读取到,把videoImageName方法完善成这样就可以了 #30

Open
banchichen opened this issue Jun 26, 2016 · 0 comments

Comments

@banchichen
Copy link

KRVideoPlayerControlView类的:

  • (NSString *)videoImageName:(NSString *)name
    {
    if (name) {
    NSString *path = [NSString stringWithFormat:@"KRVideoPlayer.bundle/%@",name];
    UIImage *image = [UIImage imageNamed:path];
    if (!image) { // 如果取不到图片,要从这个路径读取
    path = [@"Frameworks/KRVideoPlayer.framework/KRVideoPlayer.bundle" stringByAppendingPathComponent:name];
    }
    return path;
    }
    return nil;
    }
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

1 participant