//size
_topBarDisplayNode.style.preferredSize =
CGSizeMake(constrainedSize.max.width, 44);
//最小长宽
tabBarDisplayNode.style.minWidth =
ASDimensionMake(constrainedSize.max.width);
_tabBarDisplayNode.style.minHeight = ASDimensionMake(44);
//等同于直接设置preferredSize
tabBarDisplayNode.style.width =
ASDimensionMake(constrainedSize.max.width);
_tabBarDisplayNode.style.height = ASDimensionMake(44);
网友评论