[tvOS] Branch out tvOS specific code into it's own categories

This commit is contained in:
Aaron Schubert
2016-04-21 08:59:14 +01:00
parent dbb9026415
commit 06d4573b14
10 changed files with 337 additions and 246 deletions

View File

@@ -69,7 +69,11 @@
{
if (!_titleNode) {
_titleNode = [[ASTextNode alloc] init];
#if TARGET_OS_IOS
// tvOS needs access to the underlying view
// of the button node to add a touch handler.
[_titleNode setLayerBacked:YES];
#endif
[_titleNode setFlexShrink:YES];
}
return _titleNode;