40 lines
1009 B
Objective-C
40 lines
1009 B
Objective-C
//
|
||
// GiGaBaseViewController.h
|
||
// GIGA
|
||
//
|
||
// Created by lianxiang on 2018/8/13.
|
||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
#import "GiGaNoNetWorkView.h"
|
||
|
||
@interface GiGaBaseViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>
|
||
{
|
||
UIView *_emptyView;
|
||
GiGaNoNetWorkView *_noNetWorkView;
|
||
|
||
}
|
||
|
||
@property (nonatomic,strong) UIView * emptyView;
|
||
@property (nonatomic,strong) GiGaNoNetWorkView * noNetWorkView;
|
||
|
||
@property (nonatomic,strong) UITableView *tableView;
|
||
|
||
//网络改变回调Block,-1未知、0无网络、1蜂窝数据网络、2WiFi
|
||
@property (nonatomic, copy) void(^ network)(AFNetworkReachabilityStatus status);
|
||
//当前网络状态,-1未知、0无网络、1蜂窝数据网络、2WiFi
|
||
@property (nonatomic, assign) AFNetworkReachabilityStatus currentNetworkStatus;
|
||
|
||
- (void)showNoNetWorkView;
|
||
- (void)removeNoNetWorkView;
|
||
|
||
- (void)showEmptyView;
|
||
- (void)removeEmtyView;
|
||
|
||
|
||
- (void)addNavTitile:(NSString *)title;
|
||
|
||
|
||
@end
|