Commit f6d10825 authored by Edgar Fouillet's avatar Edgar Fouillet Committed by Soomin Lee

Network Login: Cosmetic: Use modern objective-c syntax

parent 3fa8a207
......@@ -97,7 +97,7 @@ static NSString *const VLCNetworkLoginDataSourceProtocolCellIdentifier = @"VLCNe
// Always use black since the background is always white.
[self.segmentedControl setTitleTextAttributes:@{NSForegroundColorAttributeName:
[UIColor blackColor]}
UIColor.blackColor}
forState:UIControlStateSelected];
}
[self.contentView addSubview:_segmentedControl];
......
......@@ -24,8 +24,8 @@ NSString * const kVLCNetworkLoginViewButtonCellIdentifier = @"VLCNetworkLoginVie
if (self) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(themeDidChange) name:kVLCThemeDidChangeNotification object:nil];
[self themeDidChange];
self.textLabel.backgroundColor = [UIColor clearColor];
self.textLabel.textColor = [UIColor whiteColor];
self.textLabel.backgroundColor = UIColor.clearColor;
self.textLabel.textColor = UIColor.whiteColor;
self.textLabel.textAlignment = NSTextAlignmentCenter;
self.accessibilityTraits = UIAccessibilityTraitButton;
......
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