'topLayoutGuide' is deprecated: first deprecated in iOS 11.0
topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
IF_IOS7_OR_GREATER
(
CGRect frame = _toolbar.frame;
frame.origin.y = self.topLayoutGuide.length;
//_toolbar.frame = frame;
)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
