Update social app to use new text node API

This commit is contained in:
Levi McCallum 2015-11-15 10:48:50 -08:00 committed by Levi McCallum
parent 52b6c47d23
commit af60009992

View File

@ -31,7 +31,7 @@
_nameNode = [[ASTextNode alloc] init];
_nameNode.attributedString = [[NSAttributedString alloc] initWithString:_post.name
attributes:[TextStyles nameStyle]];
_nameNode.maximumLineCount = 1;
_nameNode.maximumNumberOfLines = 1;
[self addSubnode:_nameNode];
// username node
@ -40,7 +40,7 @@
attributes:[TextStyles usernameStyle]];
_usernameNode.flexShrink = YES; //if name and username don't fit to cell width, allow username shrink
_usernameNode.truncationMode = NSLineBreakByTruncatingTail;
_usernameNode.maximumLineCount = 1;
_usernameNode.maximumNumberOfLines = 1;
[self addSubnode:_usernameNode];