84 lines
2.6 KiB
Objective-C
Executable File
84 lines
2.6 KiB
Objective-C
Executable File
//
|
||
// BaseController.h
|
||
// 君分时代
|
||
//
|
||
// Created by 贠小飞 on 2018/4/10.
|
||
// Copyright © 2018年 贠小飞. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
#import "BaseUIStyle.h"
|
||
#import "CustomNavigationView.h"
|
||
#import "NODataView.h"
|
||
|
||
@interface BaseController : UIViewController
|
||
|
||
#pragma mark - ybb添加
|
||
/// 导航栏文字,如果要使用自定义导航栏时:必需
|
||
@property (nonatomic, copy) NSString *navTitle;
|
||
/// 自定义导航栏
|
||
@property (nonatomic, strong) CustomNavigationView *customNavBar;
|
||
/// 当前页面是否在显示,eg:如收到通知判断当前页面在显示时才执行事件,可用该值判断
|
||
@property (nonatomic, assign) BOOL viewOnShow;
|
||
|
||
/// 关闭IQKeyboard,默认为NO
|
||
@property (nonatomic, assign) BOOL IQKeyboardDisable;
|
||
|
||
/// 一行代码设置头部标题并push出自己,有自定义导航栏
|
||
/// @param title 标题
|
||
- (void)pushSelfWithTitle:(NSString *)title;
|
||
|
||
|
||
#pragma mark - 旧的
|
||
|
||
@property (nonatomic, strong) BaseUIStyle *uiStyle;
|
||
@property (nonatomic, strong) UIView *barView;
|
||
@property (nonatomic, strong) UILabel *titleLabel;
|
||
@property (nonatomic, strong) UIButton *leftButton;
|
||
@property (nonatomic, strong) UIImageView *leftButtonView;
|
||
@property (nonatomic, strong) UILabel *leftTitleLabel;
|
||
@property (nonatomic, strong) UIButton *rightButton;
|
||
@property (nonatomic, strong) UIImageView *rightButtonView;
|
||
@property (nonatomic, strong) UILabel *rightTitleLabel;
|
||
@property (nonatomic, strong) UIView *bgView;
|
||
@property(nonatomic, assign) NSInteger bj_page;
|
||
//@property (nonatomic, assign) BOOL needBackground;
|
||
@property (nonatomic, assign) BOOL isNeedLine;
|
||
|
||
@property(nonatomic, strong) NODataView *emptyView;
|
||
|
||
@property(nonatomic, strong) UIScrollView *scrollView;
|
||
@property (nonatomic, strong) UITableView * BJ_tableView;
|
||
@property (nonatomic, strong) UICollectionView * BJ_collectionView;
|
||
@property(nonatomic, strong) NSMutableArray *BJ_dataArray;
|
||
|
||
//图片加文字,空视图
|
||
-(void)isShowEmptyViewWithArray:(NSArray *)ary;
|
||
|
||
- (void)loadBar:(BOOL)needBar needBack:(BOOL)needBack needBackground:(BOOL)beedBackground;
|
||
- (void)backClick;
|
||
- (void)rightButtonClick:(UIButton *)sender;
|
||
- (void)showMessage:(NSString *)message;
|
||
- (void)reloadData;
|
||
//显示小红点
|
||
- (void)showBadge;
|
||
//隐藏小红点
|
||
- (void)hideBadge;
|
||
|
||
#pragma mark - 加载框
|
||
- (void)showLoading;
|
||
|
||
- (void)dismissLoading;
|
||
|
||
/**
|
||
* 显示没有数据页面
|
||
*/
|
||
-(void)showNoDataImage;
|
||
/**
|
||
* 移除无数据页面
|
||
*/
|
||
-(void)removeNoDataImage;
|
||
|
||
|
||
@end
|