Commit 08ba05b3 authored by Carola Nitz's avatar Carola Nitz

VLCMoviewController: use addConstraints instead of activateConstraints for iOS7

(cherry picked from commit c934384f)
parent 0d5c5452
Pipeline #137 failed with stage
in 0 seconds
......@@ -142,7 +142,7 @@ static const CGFloat maxCompactWidth = 420.0;
metrics:nil
views:viewsDict]];
}
[NSLayoutConstraint activateConstraints:staticConstraints];
[self addConstraints:staticConstraints];
}
- (void)updateViewConstraints
......
......@@ -369,7 +369,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[self.navigationController.navigationBar addSubview:self.timeNavigationTitleView];
[self.navigationController.navigationBar addSubview:doneButton];
[NSLayoutConstraint activateConstraints: @[
[self.navigationController.view addConstraints: @[
[NSLayoutConstraint constraintWithItem:doneButton attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.navigationController.navigationBar attribute:NSLayoutAttributeLeft multiplier:1 constant:8],
[NSLayoutConstraint constraintWithItem:doneButton attribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:self.navigationController.navigationBar attribute:NSLayoutAttributeCenterY multiplier:1 constant:0],
[NSLayoutConstraint constraintWithItem:self.timeNavigationTitleView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:doneButton attribute:NSLayoutAttributeRight multiplier:1 constant:0],
......
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