标签:
第一步:创建视图控制器并创建LoginViewController、RegistViewController、PasswordViewController三个控制器:
#import "MainViewController.h"
#import "LoginViewController.h"
#import "RegistViewController.h"
#import "PasswordViewController.h"
@interface MainViewController ()
@end
@implementation MainViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
RegistViewController *registVC=[[RegistViewController alloc]init];
[self.view addSubview:registVC.view];
PasswordViewController *passwordVC=[[PasswordViewController alloc]init];
[self.view addSubview:passwordVC.view];
LoginViewController *logicaVC = [[LoginViewController alloc] init];
[self.view addSubview:logicaVC.view];
}
第二步:创建LTView视图:
实现LoginViewController
标签:
原文地址:http://www.cnblogs.com/sxsy-2015/p/4888463.html