123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*****************************************************************************
- * 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 "VLCPlaybackInfoTrackTVTitleView.h"
- @implementation VLCPlaybackInfoTrackTVTitleView
- - (instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self) {
- UILabel *label = [[UILabel alloc] initWithFrame:frame];
- label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
- label.textColor = [UIColor darkGrayColor];
- label.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- [self addSubview:label];
- _titleLabel = label;
- }
- return self;
- }
- + (void)registerInCollectionView:(UICollectionView *)collectionView
- {
- [collectionView registerClass:self forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:[self identifier]];
- }
- + (NSString *)identifier
- {
- return @"VLCPlaybackInfoTrackTVTitleView";
- }
- @end
|