VLCPlaybackInfoPanelTVViewController.m 1.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
/*****************************************************************************
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2015 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Tobias Conradi <videolan # tobias-conradi.de>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import "VLCPlaybackInfoPanelTVViewController.h"

@interface VLCPlaybackInfoPanelTVViewController ()

@end

@implementation VLCPlaybackInfoPanelTVViewController

static inline void sharedSetup(VLCPlaybackInfoPanelTVViewController *self)
{
    self.edgesForExtendedLayout = UIRectEdgeNone;
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        sharedSetup(self);
    }
    return self;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    sharedSetup(self);
}

- (CGSize)preferredContentSize
{
    return CGSizeMake(CGRectGetWidth(self.view.bounds), 100);
}

// private API to prevent tab bar from hiding
- (BOOL)_tvTabBarShouldAutohide
{
    return NO;
}

51 52 53 54 55
+ (BOOL)shouldBeVisibleForPlaybackController:(VLCPlaybackController *)vpc
{
    return YES;
}

56
@end