![AsyncDisplayKit](https://github.com/facebook/AsyncDisplayKit/blob/master/docs/assets/logo.png)
[![Build Status](https://travis-ci.org/facebook/AsyncDisplayKit.svg)](https://travis-ci.org/facebook/AsyncDisplayKit)
[![Version](http://img.shields.io/cocoapods/v/AsyncDisplayKit.svg)](http://cocoapods.org/?q=AsyncDisplayKit)
[![Platform](http://img.shields.io/cocoapods/p/AsyncDisplayKit.svg)]()
[![License](http://img.shields.io/cocoapods/l/AsyncDisplayKit.svg)](https://github.com/facebook/AsyncDisplayKit/blob/master/LICENSE)
AsyncDisplayKit is an iOS framework that keeps even the most complex user
interfaces smooth and responsive. It was originally built to make Facebook's
[Paper](https://facebook.com/paper) possible, and goes hand-in-hand with
[pop](https://github.com/facebook/pop)'s physics-based animations — but
it's just as powerful with UIKit Dynamics and conventional app designs.
### Quick start
ASDK is available on [CocoaPods](http://cocoapods.org). Add the following to your Podfile:
```ruby
pod 'AsyncDisplayKit'
```
(ASDK can also be used as a regular static library: Copy the project to your
codebase manually, adding `AsyncDisplayKit.xcodeproj` to your workspace. Add
`libAsyncDisplayKit.a`, AssetsLibrary, and Photos to the "Link Binary With
Libraries" build phase. Include `-lc++ -ObjC` in your project linker flags.)
Import the framework header, or create an [Objective-C bridging
header](https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html)
if you're using Swift:
```objective-c
#import <AsyncDisplayKit/AsyncDisplayKit.h>
```
AsyncDisplayKit Nodes are a thread-safe abstraction layer over UIViews and
CALayers:
![node-view-layer diagram](https://github.com/facebook/AsyncDisplayKit/blob/master/docs/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, ^{
ASTextNode *node = [[ASTextNode alloc] init];
node.attributedString = [[NSAttributedString alloc] initWithString:@"hello!"
attributes:nil];
[node measure:CGSizeMake(screenWidth, FLT_MAX)];
node.frame = (CGRect){ CGPointZero, node.calculatedSize };
// self.view isn't a node, so we can only use it on the main thread
dispatch_async(dispatch_get_main_queue(), ^{
[self.view addSubview:node.view];
});
});
```
AsyncDisplayKit at a glance:
* `ASImageNode` and `ASTextNode` are drop-in replacements for UIImageView and
UITextView.
* `ASMultiplexImageNode` can load and display progressively higher-quality
variants of an image over a slow cell network, letting you quickly show a
low-resolution photo while the full size downloads.
* `ASNetworkImageNode` is a simpler, single-image counterpart to the Multiplex
node.
* `ASTableView` and `ASCollectionView` are a node-aware UITableView and
UICollectionView, respectively, that can asynchronously preload cell nodes
— from loading network data to rendering — all without blocking
the main thread.
You can also easily [create your own
nodes](https://github.com/facebook/AsyncDisplayKit/blob/master/AsyncDisplayKit/ASDisplayNode%2BSubclasses.h)
to implement node hierarchies or custom drawing.
### Learn more
* Read the [Getting Started guide](http://asyncdisplaykit.org/guide/)
* Get the [sample projects](https://github.com/facebook/AsyncDisplayKit/tree/master/examples)
* Browse the [API reference](http://asyncdisplaykit.org/appledoc/)
* Watch the [NSLondon talk](http://vimeo.com/103589245)
## Testing
AsyncDisplayKit has extensive unit test coverage. You'll need to run `pod install` in the root AsyncDisplayKit directory to set up OCMock.
## Contributing
See the CONTRIBUTING file for how to help out.
## License
AsyncDisplayKit is BSD-licensed. We also provide an additional patent grant.
The files in the /examples directory are licensed under a separate license as specified in each file; documentation is licensed CC-BY-4.0.
没有合适的资源?快使用搜索试试~ 我知道了~
AsyncDisplayKit--demo
共458个文件
h:173个
m:93个
png:32个
5星 · 超过95%的资源 需积分: 9 101 下载量 110 浏览量
2015-06-14
17:35:47
上传
评论 1
收藏 5.73MB ZIP 举报
温馨提示
Facebook 的 Paper 团队给我们带来另一个很棒的库:AsyncDisplayKit. 这是一个使用AsyncDisplayKit 的demo
资源推荐
资源详情
资源评论
收起资源包目录
AsyncDisplayKit--demo (458个子文件)
CNAME 21B
.DS_Store 10KB
.DS_Store 8KB
.DS_Store 8KB
.DS_Store 6KB
.DS_Store 6KB
.gitignore 218B
ASDisplayNode.h 22KB
_AS-objc-internal.h 18KB
ASDisplayNode+Subclasses.h 13KB
ASTextNode.h 9KB
ASTableView.h 8KB
ASCollectionView.h 8KB
ASMultiplexImageNode.h 8KB
ASThread.h 8KB
ASTextNodeRenderer.h 7KB
ASDataController.h 7KB
_ASAsyncTransaction.h 7KB
ASEditableTextNode.h 6KB
FBSnapshotTestController.h 6KB
ASDisplayNodeInternal.h 6KB
ASControlNode.h 5KB
FBSnapshotTestCase.h 5KB
_ASDisplayLayer.h 5KB
ASImageNode.h 5KB
ASTableViewProtocols.h 4KB
ASBaseDefines.h 4KB
ASRangeController.h 4KB
ASTextNodeCoreTextAdditions.h 4KB
UIView+ASConvenience.h 4KB
_ASCoreAnimationExtras.h 3KB
ASAssert.h 3KB
ASImageProtocols.h 3KB
_ASAsyncTransactionContainer.h 3KB
ASNetworkImageNode.h 3KB
ASControlNode+Subclasses.h 3KB
ASCollectionViewProtocols.h 3KB
ASMutableAttributedStringBuilder.h 3KB
ASDisplayNodeExtras.h 3KB
ASTextNodeShadower.h 2KB
ASBatchContext.h 2KB
ASImageNode+CGExtras.h 2KB
ASTextNodeTextKitHelpers.h 2KB
ASMultidimensionalArrayUtils.h 2KB
ASLayoutController.h 2KB
ASBatchFetching.h 2KB
ASTextNodeWordKerner.h 2KB
ASCellNode.h 1KB
ASHighlightOverlayLayer.h 1KB
UIImage+Compare.h 1KB
UIImage+Diff.h 1KB
OCMConstraint.h 1KB
NSInvocation+OCMAdditions.h 1KB
ASAvailability.h 1KB
OCMArg.h 1KB
OCMockObject.h 1KB
FBSnapshotTestCasePlatform.h 1KB
OCMockRecorder.h 1KB
ASFlowLayoutController.h 1KB
_ASDisplayView.h 1KB
_ASPendingState.h 955B
_ASAsyncTransactionGroup.h 938B
_ASAsyncTransactionContainer+Private.h 934B
KittenNode.h 915B
AsyncDisplayKit.h 881B
_ASScopeTimer.h 850B
ASSnapshotTestCase.h 850B
NSMutableAttributedString+TextKitAdditions.h 838B
ASEqualityHelpers.h 834B
ASSentinel.h 780B
BlurbNode.h 766B
AppDelegate.h 754B
AppDelegate.h 754B
AppDelegate.h 754B
AppDelegate.h 754B
AppDelegate.h 754B
ASDisplayNode+DebugTiming.h 726B
SlowpokeShareNode.h 709B
OCClassMockObject.h 708B
SlowpokeImageNode.h 707B
SlowpokeTextNode.h 705B
PostNode.h 700B
ASDealloc2MainObject.h 693B
ViewController.h 689B
ViewController.h 689B
ViewController.h 689B
ViewController.h 689B
ViewController.h 689B
AsyncDisplayKit-Bridging-Header.h 657B
Pods-AsyncDisplayKitTests-environment.h 633B
ASRangeHandler.h 632B
NSMethodSignature+OCMAdditions.h 602B
ASBasicImageDownloaderInternal.h 600B
OCMObserverRecorder.h 586B
ASScrollNode.h 576B
OCPartialMockObject.h 568B
OCObserverMockObject.h 555B
OCMBlockCaller.h 529B
ASScrollDirection.h 516B
OCMIndirectReturnValueProvider.h 514B
共 458 条
- 1
- 2
- 3
- 4
- 5
资源评论
- tpqqt2017-03-13很不错的资源,先看看
- 就是很随意哦2016-11-29可以用, 感谢分享
- 子鱼_谋2015-12-20嗯,很好,可以用
- dash0072015-11-18不错,正是我需要的
转身扭到脖子
- 粉丝: 19
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功