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

memory problem #3

Closed
rickysou opened this issue Mar 31, 2016 · 6 comments
Closed

memory problem #3

rickysou opened this issue Mar 31, 2016 · 6 comments

Comments

@rickysou
Copy link

hi, thanks for sharing this fantastic emoji rating. I used it , but i occurred a memory problem. when it load the view the memory would rush to 270M, and then it will crash on 1g ram device. how could i solve this problem, thanks?

UPDATE

the memory problem is caused by loading a pdf file, not the TTEmojiRting. sorry for bothering and really thanks to zekunyan's patient answers

@zekunyan
Copy link
Owner

I will fix it ! Thank you !

@zekunyan
Copy link
Owner

@rickysou I have fixed the memory problem in the new version 0.1.6. You can try it :)

@rickysou
Copy link
Author

rickysou commented Apr 1, 2016

great thanks for your work. i test it on iPhone memory cost 196m , it is good. but test on 1g ram device(ipod 5) still crash,,,you test on 1g device, it runs fine?

@zekunyan
Copy link
Owner

zekunyan commented Apr 1, 2016

I have tested it by creating 100 EmojiRateView instances in TTGEmojiRate Demo like this:

for i in 0...100 {
    let tmp = EmojiRateView.init(frame: CGRectMake(20, (CGFloat)(i * 10), 200, 200))
    self.view.addSubview(tmp)
}

It only cost 7.1MB memory on my iPhone 6.

So maybe it's some other reason that lead to your memory problem. :)

@rickysou
Copy link
Author

rickysou commented Apr 1, 2016

wow, i will check that. if so, really sorry for troubling you

@zekunyan
Copy link
Owner

zekunyan commented Apr 1, 2016

You are welcome. :)

@zekunyan zekunyan closed this as completed Apr 5, 2016
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