Peter
6b0454ccf5
Merge commit 'ec59c3161adb37d4b5b908019250dddce1c27d84'
...
# Conflicts:
# AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.h
# AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m
# AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m
# AsyncDisplayKit/Details/ASFlowLayoutController.h
# AsyncDisplayKit/Details/ASFlowLayoutController.mm
2017-02-11 17:00:16 +03:00
Garrett Moon
6d9f12c7e9
[ASNetworkImageNode] Assert if both URL and image are set ( #2782 )
...
* [ASNetworkImageNode] Assert if both URL and image are set
Here's one other idea for addressing this problem. Essentially,
we assert if you've set both the URL and the image. I've played around
with Pinterest and there's only one case where we hit this (the transition).
So I've also added another method (which is a bummer, it's weird I know)
but there's one good reason to add this method, ephemeralImage, which is
the user doesn't have to manually clear it out like they would if they
used defaultImage to save memory.
Putting this up for discussion.
* Fix comment
* Oh yeah, @dynamic, thanks @adlai
* Remove ephemeralImage
2017-02-09 13:23:44 -08:00
Peter
e7b34f5811
Merge commit '404795dc02aa57b167223bfaee7c380907022ca1'
...
# 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
2017-02-02 11:46:47 +03:00
Adlai Holler
404795dc02
Remove Support for iOS 7 ( #2930 )
...
* Drop support for iOS 7
* Copy reference images
* Update deployment for sample projects
* Update version
* Update "Life Without Cocoapods"
2017-02-01 14:40:37 -08:00
Peter
c0b31e7eba
Merge commit '7872cfb5a40c5483c23c810096f69d315d8b54bc'
...
# Conflicts:
# AsyncDisplayKit/ASImageNode.mm
2016-12-22 03:21:26 +03:00
Garrett Moon
dabb69d461
Don't behave like an image node if URL is set. ( #2774 )
...
After much discussion I think this is the correct behavior. It seems
like it's much more likely to be the expected behavior but still enables
you to use the network image node like an regular image node.
2016-12-15 12:01:18 -08:00
Peter
d6cc31eaff
Merge commit '4355f4d2eef9472642a8a8029aeef1c7fdad034f' into debug-drawrect
2016-12-12 01:10:39 +03:00
Peter
7bf7235e0c
no message
2016-12-11 22:59:02 +03:00
Michael Schneider
ee0cc9b103
Further logic and documentation improvements
2016-12-06 14:19:54 -08:00
Garrett Moon
5cd8f28ad5
@return is recognized by the syntax highlighter. ( #2313 )
2016-09-28 14:40:05 -07:00
Hannah Troisi
abf8d5b9aa
[Infer] change atomic properties to nonatomic ( #1932 )
2016-07-16 10:46:55 -07:00
Hannah Troisi
c857e809f4
Clean up header comments (for consistent Facebook licensing info) ( #1741 )
...
[Licensing] Clean up header comments (for consistent Facebook licensing info)
2016-06-11 23:31:39 -07:00
Hannah Troisi
52d58992da
[ASVideoNode] Change superclass to ASNetworkImageNode so that it can be its own placeholder ( #1710 )
...
* [ASVideoNode] Change superclass to ASNetworkImageNode so that ASVideoNode can be its own placeholder
- remove _placeholderImageNode property of ASVideoNode (use self.image now instead)
- move layoutSpecThatFits: code to calculateSizeThatFits: & layout: methods as ASImageNode uses calculateSizeThatFits:
* [ASVideoNode] Tweaks to the definition of the delegate protocols to integrate with ASNetworkImageNode (superclass)
2016-06-05 18:18:52 -07:00
Garrett Moon
36ce9527de
Update comments
2016-05-09 17:20:06 -07:00
Garrett Moon
c0eb6cac09
Add support for disabling progressive image rendering
...
Differential Revision: https://phabricator.pinadmin.com/D89742
2016-05-09 15:01:05 -07:00
Wendy
0b55df9649
Add the ability for ASNetworkImageNodes to keep track of their progressive image quality
2016-04-26 18:33:59 -07:00
Eric Jensen
ddd5ff1f75
Correct spelling errors
2016-03-15 21:56:51 -07:00
Garrett Moon
7d80fb31bd
rename imageNodeDidStartLoading to imageNodeDidStartFetchingData
2016-02-12 15:10:58 -08:00
Garrett Moon
cf1e4c87f5
Add image loading delegate method / cache instead of respondsToSelector
2016-02-12 15:04:14 -08:00
Christoph Zelazowski
a02a60fa75
Add error handler to ASNetworkImageNodeDelegate
2016-01-19 19:55:22 -08:00
Adlai Holler
b4b88da8cd
Merge branch 'master' into update-objc
...
Conflicts:
AsyncDisplayKit/ASCellNode.h
2015-11-02 09:36:46 -08:00
Scott Goodson
3175ce2fe7
Fix retain cycle in basic, cache-less ASNetworkImageNodes
...
This should not directly affect more complex apps that don't use the ASBasicImageDownloader.
Also disables the default-on text placeholders, as they churn memory during the measurement pass.
These were intended to be written with pure layers (without using backing stores), so I don't
think it is a reasonable default-on behavior until that is fixed.
2015-10-30 22:42:05 -07:00
Adlai Holler
814f72535c
Add nullability annotations for public API
2015-09-16 15:21:35 -07:00
Huy Nguyen
cfac6c992a
[appledoc] Fix appledoc warnings. ( #553 )
2015-07-10 19:02:04 +07:00
Ryan Nystrom
ad474fce8e
Make project imports consistent
2015-02-23 14:55:15 -08:00
Nadine Salter
93ce2b38a2
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.
2014-12-03 17:31:56 -08:00
Nadine Salter
03156dceb6
ASNetworkImageNode ARC fixes.
2014-11-21 17:05:24 -08:00
Nadine Salter
1eda1834e6
ASNetworkImageNode.
...
Initial open-source release of ASNetworkImageNode, a simple counterpart
to ASMultiplexImageNode.
2014-11-18 18:07:31 -08:00