46 lines
813 B
Mathematica
46 lines
813 B
Mathematica
![]() |
//
|
||
|
// MvpViewController.m
|
||
|
// xplan-ios
|
||
|
//
|
||
|
// Created by zu on 2021/8/31.
|
||
|
//
|
||
|
|
||
|
#import "MvpViewController.h"
|
||
|
#import "BaseMvpProtocol.h"
|
||
|
#import "BaseMvpPresenter.h"
|
||
|
#import "LoginViewController.h"
|
||
|
|
||
|
@interface MvpViewController ()
|
||
|
|
||
|
@end
|
||
|
|
||
|
@implementation MvpViewController
|
||
|
|
||
|
- (__kindof id)presenter {
|
||
|
if (_presenter == nil) {
|
||
|
_presenter = [self createPresenter];
|
||
|
[_presenter attatchView:self];
|
||
|
}
|
||
|
return _presenter;
|
||
|
}
|
||
|
|
||
|
- (__kindof id)createPresenter {
|
||
|
return [[BaseMvpPresenter alloc] init];
|
||
|
}
|
||
|
|
||
|
- (void)viewDidLoad {
|
||
|
[super viewDidLoad];
|
||
|
}
|
||
|
|
||
|
- (void)tokenInvalid {
|
||
|
LoginViewController *loginVC = [[LoginViewController alloc] init];
|
||
|
[self.navigationController pushViewController:loginVC animated:NO];
|
||
|
}
|
||
|
|
||
|
- (void)completeUserInfo {
|
||
|
// TODO:完善用户信息
|
||
|
}
|
||
|
|
||
|
|
||
|
@end
|