react-native-navigation的迁移库

UIViewController+RNNOptions.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #import <UIKit/UIKit.h>
  2. @class RNNBottomTabOptions;
  3. @class RNNNavigationOptions;
  4. @class RNNBackButtonOptions;
  5. @interface UIViewController (RNNOptions)
  6. - (void)rnn_setBackgroundImage:(UIImage *)backgroundImage;
  7. - (void)rnn_setModalPresentationStyle:(UIModalPresentationStyle)modalPresentationStyle;
  8. - (void)rnn_setModalTransitionStyle:(UIModalTransitionStyle)modalTransitionStyle;
  9. - (void)rnn_setSearchBarWithPlaceholder:(NSString *)placeholder hideNavBarOnFocusSearchBar:(BOOL)hideNavBarOnFocusSearchBar;
  10. - (void)rnn_setSearchBarHiddenWhenScrolling:(BOOL)searchBarHidden;
  11. - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind;
  12. - (void)rnn_setDrawBehindTabBar:(BOOL)drawBehindTabBar;
  13. - (void)rnn_setTabBarItemBadgeColor:(UIColor *)badgeColor;
  14. - (void)rnn_setTabBarItemBadge:(NSString *)badge;
  15. - (void)rnn_setTopBarPrefersLargeTitle:(BOOL)prefersLargeTitle;
  16. - (void)rnn_setNavigationItemTitle:(NSString *)title;
  17. - (void)rnn_setStatusBarStyle:(NSString *)style animated:(BOOL)animated;
  18. - (void)rnn_setStatusBarBlur:(BOOL)blur;
  19. - (void)rnn_setBackButtonVisible:(BOOL)visible;
  20. - (void)rnn_setBackgroundColor:(UIColor *)backgroundColor;
  21. - (void)rnn_setInterceptTouchOutside:(BOOL)interceptTouchOutside;
  22. - (void)rnn_setBackButtonIcon:(UIImage *)icon withColor:(UIColor *)color title:(NSString *)title;
  23. - (void)applyBackButton:(RNNBackButtonOptions *)backButton;
  24. - (BOOL)isModal;
  25. @end