Commit e25a4c1d authored by Carola Nitz's avatar Carola Nitz

VLCNetworkLoginViewFieldCell: Fix crash on networklogin < iOS 11

In iOS 9 and 10 there might not be a Layoutguide and the constraints would cause a crash when guide was set to nil
parent 3096f0e3
......@@ -39,7 +39,7 @@ NSString * const kVLCNetworkLoginViewFieldCellIdentifier = @"VLCNetworkLoginView
self.textField.textColor = [UIColor whiteColor];
[self addSubview:_textField];
UILayoutGuide *guide = self.layoutGuides.firstObject;
UILayoutGuide *guide = self;
if (@available(iOS 11.0, *)) {
guide = self.safeAreaLayoutGuide;
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