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

"ImageIO_PNG_Data"'s count always increase after wake up from background #34

Closed
jinsongK opened this issue May 11, 2014 · 3 comments
Closed

Comments

@jinsongK
Copy link

step1.i jump to the "Pin Annotations Demo" view then exit to the home view.
step2.click home button,demo will go to the background.then double-click home button,select demo app,and Repeat the previous operation

@jinsongK
Copy link
Author

step1:
step1
step2:
step2

@dblock
Copy link
Collaborator

dblock commented May 12, 2014

This is because we use imageNamed, see this SO question. Generally, these images should just be loaded via imageWithContentsOfFile, eg:

    NSString *australia = [[[NSBundle mainBundle] bundlePath] stringByAppendingString:@"/Maps/australia.png"];
    [mapView displayMap:[UIImage imageWithContentsOfFile:australia]];

I'll change this.

dblock added a commit to dblock/NAMapKit that referenced this issue May 12, 2014
dblock added a commit to dblock/NAMapKit that referenced this issue May 12, 2014
@dblock dblock closed this as completed in d384b8b May 12, 2014
dblock added a commit that referenced this issue May 12, 2014
Minor code changes and closing #33 and #34.
@dblock
Copy link
Collaborator

dblock commented May 12, 2014

Fix on HEAD, let me know if you find something else.

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

2 participants