mirror of
https://github.com/zhigang1992/FunctionalReactivePixels.git
synced 2026-06-20 03:38:24 +08:00
Fixed a problem where I forgot to instantiate the login view model.
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
|
||||
@implementation FRPLoginViewController
|
||||
|
||||
-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (!self) return nil;
|
||||
|
||||
self.viewModel = [FRPLoginViewModel new];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
Reference in New Issue
Block a user