Commit 6164586d authored by Tobias's avatar Tobias

don't use image stack for server, use single layer but transparent PNG instead

fix spacing between server image view and title label for focused state
parent e3c343e7
{
"images" : [
{
"idiom" : "tv",
"filename" : "ServerIconSlice-back.png",
"idiom" : "universal",
"filename" : "ServerIcon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"layers" : [
{
"filename" : "Front.imagestacklayer"
},
{
"filename" : "Middle.imagestacklayer"
},
{
"filename" : "Back.imagestacklayer"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "tv",
"filename" : "ServerIconSlice-front.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "tv",
"filename" : "ServerIconSlice-middle.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -32,10 +32,11 @@ NSString *const VLCRemoteBrowsingTVCellIdentifier = @"VLCRemoteBrowsingTVCell";
[super awakeFromNib];
_artworkProvider = [[VLCMDFBrowsingArtworkProvider alloc] init];
_artworkProvider.artworkReceiver = self;
[self prepareForReuse];
UILayoutGuide *focusedFrameGuide = self.thumbnailImageView.focusedFrameGuide;
NSLayoutConstraint *constraint = [self.titleLabel.topAnchor constraintEqualToAnchor:focusedFrameGuide.bottomAnchor];
NSLayoutConstraint *constraint = [self.titleLabel.topAnchor constraintEqualToAnchor:focusedFrameGuide.bottomAnchor constant:15];
[self.contentView addConstraint:constraint];
[self prepareForReuse];
}
- (void)prepareForReuse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment