From e14ee4aaa843cb542b63d655e47fc8423cd85c1b Mon Sep 17 00:00:00 2001 From: Michael Helmbrecht Date: Sun, 26 Oct 2014 15:02:40 -0700 Subject: [PATCH] Expand touch handling methods --- docs/guide/5-under-the-hood.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/guide/5-under-the-hood.md b/docs/guide/5-under-the-hood.md index 1fff8215..2fa1edcd 100644 --- a/docs/guide/5-under-the-hood.md +++ b/docs/guide/5-under-the-hood.md @@ -57,10 +57,12 @@ view-backed nodes also participate in asynchronous display. What does this mean for your custom nodes? -You can implement methods like `-touchesBegan::` / `Moved::` / `Ended::` / -`Cancelled::` in your nodes exactly as you would in a UIView subclass. If you -find you need a subclass hook that hasn't already been provided, please file an -issue on GitHub — or add it yourself and submit a pull request! +You can implement methods like `-touchesBegan:withEvent:` / +`touchesMoved:withEvent:` / `touchesEnded:withEvent:` / +`touchesCancelled:withEvent:` in your nodes exactly as you would in a UIView +subclass. If you find you need a subclass hook that hasn't already been +provided, please file an issue on GitHub — or add it yourself and submit a +pull request! If you need to interact or configure your node's underlying view or layer, don't do so in `-init`. Instead, override `-didLoad` and check if you're