mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-10 06:27:15 +00:00
* Separate dataSource & UIKit index spaces Beef up our supplementary node support Make the API way better Go nuts Add a unit test for UICollectionView's handling of reloadData inside batch updates Wrap indexPathForNode: in a cache Convert index paths in delegate methods Go back on table view Put collection view back Switch up the API Move most ASCollectionView API to ASCollectionNode Move most table logic over to ASTableNode Do the things More conversion work Keep on keepin' on Get table view delegate API done More porting Simplify Clear the delegate More cleanup Move more stuff around Remove pointless file Re-add some API Put back more API Use the right flag * Some cleanup * Remove incorrect comment * Tweak the API * Put back a couple methods * update example projects (note: ASCollectionView deprecation warnings expected) * change reloadDataWithCompletion:nil --> reloadData * Clean up rebase * Make deprecated numberOfItemsInSection methods optional * Use the right flag * Address nits * update ASDKTube, ASDKgram & ASViewController examples
41 lines
1.5 KiB
Objective-C
41 lines
1.5 KiB
Objective-C
//
|
||
// ASTableViewInternal.h
|
||
// AsyncDisplayKit
|
||
//
|
||
// Created by Huy Nguyen on 26/10/15.
|
||
//
|
||
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||
// This source code is licensed under the BSD-style license found in the
|
||
// LICENSE file in the root directory of this source tree. An additional grant
|
||
// of patent rights can be found in the PATENTS file in the same directory.
|
||
//
|
||
|
||
#import <AsyncDisplayKit/ASTableView.h>
|
||
|
||
@class ASDataController;
|
||
@class ASTableNode;
|
||
@class ASRangeController;
|
||
|
||
@interface ASTableView (Internal)
|
||
|
||
@property (nonatomic, strong, readonly) ASDataController *dataController;
|
||
@property (nonatomic, weak, readwrite) ASTableNode *tableNode;
|
||
@property (nonatomic, strong, readonly) ASRangeController *rangeController;
|
||
|
||
/**
|
||
* Initializer.
|
||
*
|
||
* @param frame A rectangle specifying the initial location and size of the table view in its superview’s coordinates.
|
||
* The frame of the table view changes as table cells are added and deleted.
|
||
*
|
||
* @param style A constant that specifies the style of the table view. See UITableViewStyle for descriptions of valid constants.
|
||
*
|
||
* @param dataControllerClass A controller class injected to and used to create a data controller for the table view.
|
||
*/
|
||
- (instancetype)_initWithFrame:(CGRect)frame style:(UITableViewStyle)style dataControllerClass:(Class)dataControllerClass;
|
||
|
||
/// Set YES and we'll log every time we call [super insertRows…] etc
|
||
@property (nonatomic) BOOL test_enableSuperUpdateCallLogging;
|
||
|
||
@end
|