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

SVGKImage's property NSImage is not nil but not show, and error output. #20

Open
melody5417 opened this issue Feb 16, 2016 · 0 comments

Comments

@melody5417
Copy link

I imported SVGKit, but nothing shows.

  • (void)viewDidLoad {
    [super viewDidLoad];

    SVGKImage *svgImage = [SVGKImage imageNamed:@"Coins.svg"];
    if (svgImage) {
    NSLog(@"svg not null");
    }
    NSImage *image = svgImage.NSImage;
    if (image) {
    NSLog(@"not null");
    }

    [self.imageView setImage:image];
    }

The imageView is nothing showed, and the output is:

2016-02-16 18:14:03.185 ABc[30399:3049067] svg not null
2016-02-16 18:14:03.251 ABc[30399:3049067] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
2016-02-16 18:14:03.252 ABc[30399:3049067] not null

Thanks~

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