mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-21 18:32:19 +08:00
Support UIViewContentModeCenter with ASImageNode
This commit is contained in:
@@ -79,6 +79,7 @@ static const CGFloat kInnerPadding = 10.0f;
|
||||
_imageNode.URL = [NSURL URLWithString:[NSString stringWithFormat:@"http://placekitten.com/%zd/%zd",
|
||||
(NSInteger)roundl(_kittenSize.width),
|
||||
(NSInteger)roundl(_kittenSize.height)]];
|
||||
// _imageNode.contentMode = UIViewContentModeCenter;
|
||||
[self addSubnode:_imageNode];
|
||||
|
||||
// lorem ipsum text, plus some nice styling
|
||||
|
||||
Reference in New Issue
Block a user