| 123456789101112131415161718192021222324252627282930313233 | 
							- //
 
- //  HXPhotoCustomNavigationBar.m
 
- //  HXPhotoPickerExample
 
- //
 
- //  Created by Silence on 2017/9/22.
 
- //  Copyright © 2017年 Silence. All rights reserved.
 
- //
 
- #import "HXPhotoCustomNavigationBar.h"
 
- #import "HXPhotoTools.h"
 
- @implementation HXPhotoCustomNavigationBar
 
- - (void)layoutSubviews {
 
-     [super layoutSubviews];
 
- #ifdef __IPHONE_11_0
 
-     if (@available(iOS 11.0, *)) {
 
-         self.hx_h = hxNavigationBarHeight;
 
-         for (UIView *view in self.subviews) {
 
-             if([NSStringFromClass([view class]) containsString:@"Background"]) {
 
-                 view.frame = self.bounds;
 
-             }
 
-             else if ([NSStringFromClass([view class]) containsString:@"ContentView"]) {
 
-                 CGRect frame = view.frame;
 
-                 frame.origin.y = hxNavigationBarHeight - 44;
 
-                 frame.size.height = self.bounds.size.height - frame.origin.y;
 
-                 view.frame = frame;
 
-             }
 
-         }
 
-     }
 
- #endif
 
- }
 
- @end
 
 
  |