//
//  LoginViewController.m
//  ALand
//
//  Created by Z on 16/3/17.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "LoginViewController.h"
#import "ToLoginViewController.h"
#import "RigistViewController.h"
@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES];
}

- (IBAction)rigistAction:(UIButton *)sender {
    RigistViewController *rigistVC = [[RigistViewController alloc] initWithNibName:@"RigistViewController" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:rigistVC animated:YES];
}


- (IBAction)loginACtion:(UIButton *)sender {
    ToLoginViewController *toLoginVC = [[ToLoginViewController alloc] initWithNibName:@"ToLoginViewController" bundle:[NSBundle mainBundle]];
    //NSLog(@"123");
//    ToLoginViewController *toLoginVC = [[ToLoginViewController alloc] init];
    [self.navigationController pushViewController:toLoginVC animated:YES];
}


- (IBAction)toTencentLogin:(UIButton *)sender {
}

- (IBAction)toWeiChatLogin:(id)sender {
}

- (IBAction)toWeiboLogin:(id)sender {
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
