| 12345678910111213141516171819202122232425262728293031 |
- //
- // UINavigationController+KSNavigationBar.h
- // TeacherDaya
- //
- // Created by Kyle on 2020/6/28.
- // Copyright © 2020 DayaMusic. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface UINavigationController (KSNavigationBar)
- /// A view controller is able to control navigation bar's appearance by itself,
- /// rather than a global way, checking "ks_prefersNavigationBarHidden" property.
- /// Default to YES, disable it if you don't want so.
- @property (nonatomic, assign) BOOL ks_viewControllerBasedNavigationBarAppearanceEnabled;
- @end
- @interface UIViewController (KSHanderNavigationBar)
- /// Indicate this view controller prefers its navigation bar hidden or not,
- /// checked when view controller based navigation bar's appearance is enabled.
- /// Default to NO, bars are more likely to show.
- @property (nonatomic, assign) BOOL ks_prefersNavigationBarHidden;
- @end
- NS_ASSUME_NONNULL_END
|