mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-02 09:06:58 +00:00
# Conflicts: # AsyncDisplayKit.xcodeproj/project.pbxproj # AsyncDisplayKit/ASCellNode+Internal.h # AsyncDisplayKit/ASCellNode.mm # AsyncDisplayKit/ASCollectionNode+Beta.h # AsyncDisplayKit/ASCollectionNode.mm # AsyncDisplayKit/ASCollectionView.mm # AsyncDisplayKit/ASCollectionViewProtocols.h # AsyncDisplayKit/ASDisplayNode.mm # AsyncDisplayKit/ASMultiplexImageNode.h # AsyncDisplayKit/ASMultiplexImageNode.mm # AsyncDisplayKit/ASNavigationController.m # AsyncDisplayKit/ASNetworkImageNode.mm # AsyncDisplayKit/ASPagerFlowLayout.m # AsyncDisplayKit/ASPagerNode.m # AsyncDisplayKit/ASTabBarController.m # AsyncDisplayKit/ASTableNode.h # AsyncDisplayKit/ASTableNode.mm # AsyncDisplayKit/ASTableView.mm # AsyncDisplayKit/ASTableViewProtocols.h # AsyncDisplayKit/ASVideoNode.h # AsyncDisplayKit/ASVideoNode.mm # AsyncDisplayKit/ASVideoPlayerNode.mm # AsyncDisplayKit/ASViewController.mm # AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m # AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m # AsyncDisplayKit/Details/ASBasicImageDownloader.mm # AsyncDisplayKit/Details/ASBatchContext.mm # AsyncDisplayKit/Details/ASChangeSetDataController.h # AsyncDisplayKit/Details/ASChangeSetDataController.mm # AsyncDisplayKit/Details/ASCollectionDataController.mm # AsyncDisplayKit/Details/ASCollectionViewLayoutController.mm # AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m # AsyncDisplayKit/Details/ASDataController.mm # AsyncDisplayKit/Details/ASFlowLayoutController.h # AsyncDisplayKit/Details/ASFlowLayoutController.mm # AsyncDisplayKit/Details/ASIndexedNodeContext.mm # AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.h # AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.m # AsyncDisplayKit/Details/ASRangeController.mm # AsyncDisplayKit/Details/ASRangeControllerUpdateRangeProtocol+Beta.h # AsyncDisplayKit/Details/ASSectionContext.h # AsyncDisplayKit/Private/ASBatchFetching.m # AsyncDisplayKit/Private/ASCollectionView+Undeprecated.h # AsyncDisplayKit/Private/ASCollectionViewFlowLayoutInspector.h # AsyncDisplayKit/Private/ASCollectionViewFlowLayoutInspector.m # AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm # AsyncDisplayKit/Private/_ASPendingState.mm # examples/SocialAppLayout-Inverted/Sample.xcodeproj/xcshareddata/xcschemes/Sample.xcscheme
73 lines
2.5 KiB
Objective-C
73 lines
2.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.
|
||
//
|
||
|
||
#ifndef MINIMAL_ASDK
|
||
|
||
#import <AsyncDisplayKit/ASTableView.h>
|
||
|
||
@class ASDataController;
|
||
@class ASTableNode;
|
||
@class ASRangeController;
|
||
@class ASEventLog;
|
||
|
||
@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.
|
||
*
|
||
* @param eventLog An event log passed through to the data controller.
|
||
*/
|
||
- (instancetype)_initWithFrame:(CGRect)frame style:(UITableViewStyle)style dataControllerClass:(Class)dataControllerClass eventLog:(ASEventLog *)eventLog;
|
||
|
||
/// Set YES and we'll log every time we call [super insertRows…] etc
|
||
@property (nonatomic) BOOL test_enableSuperUpdateCallLogging;
|
||
|
||
/**
|
||
* Attempt to get the view-layer index path for the row with the given index path.
|
||
*
|
||
* @param indexPath The index path of the row.
|
||
* @param wait If the item hasn't reached the view yet, this attempts to wait for updates to commit.
|
||
*/
|
||
- (NSIndexPath *)convertIndexPathFromTableNode:(NSIndexPath *)indexPath waitingIfNeeded:(BOOL)wait;
|
||
|
||
/**
|
||
* Attempt to get the node index path given the view-layer index path.
|
||
*
|
||
* @param indexPath The index path of the row.
|
||
*/
|
||
- (NSIndexPath *)convertIndexPathToTableNode:(NSIndexPath *)indexPath;
|
||
|
||
/**
|
||
* Attempt to get the node index paths given the view-layer index paths.
|
||
*
|
||
* @param indexPaths An array of index paths in the view space
|
||
*/
|
||
- (NSArray<NSIndexPath *> *)convertIndexPathsToTableNode:(NSArray<NSIndexPath *> *)indexPaths;
|
||
|
||
/// Returns the width of the section index view on the right-hand side of the table, if one is present.
|
||
- (CGFloat)sectionIndexWidth;
|
||
|
||
@end
|
||
|
||
#endif
|