Tweak docs.

This commit is contained in:
Nadine Salter
2014-10-10 12:16:45 -07:00
parent 9eaaa03d7a
commit d5b6fb7da4
2 changed files with 13 additions and 8 deletions

View File

@@ -128,11 +128,11 @@ Our view controller will look something like this:
```
This works as you would expect. Unfortunately, this button is only 14½
points tall — nowhere the standard 44×44 minimum tap target size
— and it's very difficult to tap. We could solve this by subclassing the
text node and overriding `-hitTest:withEvent:`. We could even force the text
view to have a minimum height during layout. But wouldn't it be nice if there
were a more elegant way?
points tall — nowhere near the standard 44×44 minimum tap target
size — and it's very difficult to tap. We could solve this by
subclassing the text node and overriding `-hitTest:withEvent:`. We could even
force the text view to have a minimum height during layout. But wouldn't it be
nice if there were a more elegant way?
```objective-c
// size all the things

View File

@@ -30,8 +30,13 @@ if you're using Swift:
```
AsyncDisplayKit Nodes are a thread-safe abstraction layer over UIViews and
CALayers. You can construct entire node hierarchies in parallel, or
instantiate and size a single node on a background thread:
CALayers:
![logo]({{ site.baseurl }}/assets/node-view-layer.png)
You can construct entire node hierarchies in parallel, or instantiate and size
a single node on a background thread — for example, you could do
something like this in a UIViewController:
```objective-c
dispatch_async(_backgroundQueue, ^{
@@ -60,6 +65,6 @@ blocking the main thread.
### Learn more
* Read the [Getting Started guide]({{ site.baseurl }}/guide)
* Check out [sample projects](https://github.com/facebook/AsyncDisplayKit/tree/master/examples)
* Get the [sample projects](https://github.com/facebook/AsyncDisplayKit/tree/master/examples)
* Browse the [API reference]({{ site.baseurl }}/appledoc)
* Watch the [NSLondon talk](http://www.youtube.com/watch?v=h4QDbgB7RLo)