Commit 19b50edc authored by Gleb Pinigin's avatar Gleb Pinigin

VLCStatusLabel: override initialization methods, remove redundant CoreGraphics method invocation

parent bd053cc8
......@@ -21,6 +21,31 @@
@implementation VLCStatusLabel
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self)
[self initialize];
return self;
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (self)
[self initialize];
return self;
}
- (void)initialize
{
self.backgroundColor = [UIColor clearColor];
}
#pragma mark -
- (void)showStatusMessage:(NSString *)message
{
self.text = message;
......@@ -74,11 +99,10 @@
[UIView animateWithDuration:duration animations:animationBlock completion:completionBlock];
}
#pragma mark -
- (void)drawRect:(CGRect)rect
{
self.backgroundColor = [UIColor clearColor];
CGContextClearRect(UIGraphicsGetCurrentContext(), rect);
UIColor *drawingColor = [UIColor VLCDarkBackgroundColor];
[drawingColor setFill];
......
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