mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-08 12:24:39 +00:00
Tweak docs.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||

|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user