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

- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;有创建寄宿图吗? #13

Open
walkdianzi opened this issue Sep 8, 2016 · 0 comments

Comments

@walkdianzi
Copy link

你寄宿图那章说调用-drawRect:和- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;都会创建寄宿图。我测试了一下在UIView(frame特别大)的时候重写-drawRect:内存急剧飙升确实应该产生了寄宿图。但是在测试layer的时候调用了- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;内存并没有上升很多啊,感觉好像没有创建寄宿图的样子。

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