mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Make ASNetworkImageNode Just Work.
Use ASBasicImageDownloader by default -- you can now do... ASNetworkImageNode *imageNode = [[ASNetworkImageNode alloc] init]; imageNode.URL = [NSURL URLWithString:@"..."]; [self.view addSubview:imageNode.view]; ...and it'll do the right thing.
This commit is contained in:
@@ -29,10 +29,16 @@
|
||||
*
|
||||
* @discussion If `cache` is nil, the receiver will not attempt to retrieve images from a cache before downloading them.
|
||||
*
|
||||
* @result An initialized ASNetworkImageNode.
|
||||
* @returns An initialized ASNetworkImageNode.
|
||||
*/
|
||||
- (instancetype)initWithCache:(id<ASImageCacheProtocol>)cache downloader:(id<ASImageDownloaderProtocol>)downloader;
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/**
|
||||
* Convenience initialiser.
|
||||
*
|
||||
* @returns An ASNetworkImageNode configured to use the NSURLSession-powered ASBasicImageDownloader, and no extra cache.
|
||||
*/
|
||||
- (instancetype)init;
|
||||
|
||||
/**
|
||||
* The delegate, which must conform to the <ASNetworkImageNodeDelegate> protocol.
|
||||
|
||||
Reference in New Issue
Block a user