mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-16 17:00:58 +00:00
- overrode the -(void)fetchData method in PhotoCellNode.m to download the photo’s comments. This method gets called with the PhotoCellNode enters ASInterfaceStateFetchData, which is set by the rangeController. - UIKIT COMPARISON: I left the comment bulk download (for all photos in a page load) in the PhotoFeedViewController side for UIKit because when implemented in the PhotoTableViewCell, each cell jumped around as it changed size when it came on screen. - minor appearance updates - updated color scheme - fixed status bar style to darkBackgroundColor - cleaned up layoutSpecThatFits: in PhotoCellNode
20 lines
414 B
Objective-C
20 lines
414 B
Objective-C
//
|
|
// PhotoCellNode.h
|
|
// Flickrgram
|
|
//
|
|
// Created by Hannah Troisi on 2/17/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
|
|
#import <CoreLocation/CLLocation.h>
|
|
#import "PhotoModel.h"
|
|
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
|
#import "PhotoTableViewCell.h" // PhotoTableViewCellProtocol
|
|
|
|
|
|
@interface PhotoCellNode : ASCellNode
|
|
|
|
- (instancetype)initWithPhotoObject:(PhotoModel *)photo;
|
|
|
|
@end
|