[ASDisplayNode] Pass drawParameter in rendering context callbacks (#248)

* Pass drawParameter in rendering context callbacks

* Add changelog

* Fix examples
This commit is contained in:
Michael Schneider
2017-05-08 14:39:40 -07:00
committed by GitHub
parent ad9924abd8
commit 8692428481
6 changed files with 17 additions and 13 deletions

View File

@@ -251,7 +251,7 @@
// For -display methods, we don't have a context, and thus will not call the _willDisplayNodeContentWithRenderingContext or
// _didDisplayNodeContentWithRenderingContext blocks. It's up to the implementation of -display... to do what it needs.
if (willDisplayNodeContentWithRenderingContext != nil) {
willDisplayNodeContentWithRenderingContext(currentContext);
willDisplayNodeContentWithRenderingContext(currentContext, drawParameters);
}
// Decide if we use a class or instance method to draw or display.
@@ -266,7 +266,7 @@
}
if (didDisplayNodeContentWithRenderingContext != nil) {
didDisplayNodeContentWithRenderingContext(currentContext);
didDisplayNodeContentWithRenderingContext(currentContext, drawParameters);
}
if (shouldCreateGraphicsContext) {