Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
08ba05b3
Commit
08ba05b3
authored
Sep 05, 2017
by
Carola Nitz
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCMoviewController: use addConstraints instead of activateConstraints for iOS7
(cherry picked from commit
c934384f
)
parent
0d5c5452
Pipeline
#137
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Sources/VLCMovieViewControlPanelView.m
Sources/VLCMovieViewControlPanelView.m
+1
-1
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+8
-8
No files found.
Sources/VLCMovieViewControlPanelView.m
View file @
08ba05b3
...
...
@@ -142,7 +142,7 @@ static const CGFloat maxCompactWidth = 420.0;
metrics:
nil
views:
viewsDict
]];
}
[
NSLayoutConstraint
activate
Constraints
:
staticConstraints
];
[
self
add
Constraints
:
staticConstraints
];
}
-
(
void
)
updateViewConstraints
...
...
Sources/VLCMovieViewController.m
View file @
08ba05b3
...
...
@@ -369,14 +369,14 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[
self
.
navigationController
.
navigationBar
addSubview
:
self
.
timeNavigationTitleView
];
[
self
.
navigationController
.
navigationBar
addSubview
:
doneButton
];
[
NSLayout
Con
s
tr
aint
activate
Constraints
:
@[
[
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
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeRight
multiplier
:
1
constant
:
0
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeTop
multiplier
:
1
constant
:
0
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
constant
:
0
],
]];
[
self
.
navigation
Contr
oller
.
view
add
Constraints
:
@[
[
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
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeRight
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeRight
multiplier
:
1
constant
:
0
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeTop
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeTop
multiplier
:
1
constant
:
0
],
[
NSLayoutConstraint
constraintWithItem
:
self
.
timeNavigationTitleView
attribute
:
NSLayoutAttributeBottom
relatedBy
:
NSLayoutRelationEqual
toItem
:
self
.
navigationController
.
navigationBar
attribute
:
NSLayoutAttributeBottom
multiplier
:
1
constant
:
0
],
]];
}
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
...
...
Felix Paul Kühne
@fkuehne
mentioned in commit
863bc43d
·
Sep 12, 2017
mentioned in commit
863bc43d
mentioned in commit 863bc43db34db2e854d64a6426318c820561c13f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment