Fix several UI issues

This commit is contained in:
Cameron Gutman
2018-08-26 16:43:45 -07:00
parent 2e479837ed
commit 44f64e1a35
3 changed files with 13 additions and 4 deletions
+3
View File
@@ -112,6 +112,9 @@ static UIImage* noImage;
[_appLabel setTextAlignment:NSTextAlignmentCenter];
[_appLabel setLineBreakMode:NSLineBreakByWordWrapping];
[_appLabel setNumberOfLines:0];
#if TARGET_OS_TV
[_appLabel setFont:[UIFont systemFontOfSize:16]];
#endif
[_appLabel setText:_app.name];
[_appButton addSubview:_appLabel];
}
+5
View File
@@ -18,7 +18,12 @@
CGSize _labelSize;
}
static const float REFRESH_CYCLE = 2.0f;
#if TARGET_OS_TV
static const int LABEL_DY = 40;
#else
static const int LABEL_DY = 20;
#endif
- (id) init {
self = [super init];