From af60009992d1937f0dec1802d6753962ff0793dd Mon Sep 17 00:00:00 2001 From: Levi McCallum Date: Sun, 15 Nov 2015 10:48:50 -0800 Subject: [PATCH] Update social app to use new text node API --- examples/SocialAppLayout/Sample/PostNode.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SocialAppLayout/Sample/PostNode.m b/examples/SocialAppLayout/Sample/PostNode.m index b7f2a9c961..bf1c5f22b5 100644 --- a/examples/SocialAppLayout/Sample/PostNode.m +++ b/examples/SocialAppLayout/Sample/PostNode.m @@ -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];