YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!

2015-12-16-UI7_作业2-创建三个页⾯面,

创建三个页⾯面,要求: 1.登陆页⾯面LoginViewController,可以输⼊入⽤用户名和密码, 导航栏右侧放置添加按钮,可以通过添加按钮模态到注册 页⾯面。 2.注册页⾯面RegisterViewController,填写⽤用户名,密码, 确认密码后注册。 3.欢迎页⾯面WelcomeViewController,由登陆页⾯面push得 到。

//
// AppDelegate.h
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (retain, nonatomic) UIWindow *window;

@end


//
// AppDelegate.m
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "AppDelegate.h"

import "RootViewController.h"

import "RegisterViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

@end



//
// RootViewController.h
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <UIKit/UIKit.h>

@interface RootViewController : UIViewController

@end


//
// RootViewController.m
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "RootViewController.h"

import "RegisterViewController.h"

import "WelcomeViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

// RegisterViewController *rsVC = [[RegisterViewController alloc]init];
// [self.navigationController pushViewController:rsVC animated:YES];
// [rsVC release];


RegisterViewController *reVC = [[RegisterViewController alloc]init];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:reVC];

// RegisterViewController * = [[RegisterViewController alloc]init];

//
[self presentViewController:nav animated:YES completion:^{
    //
}];
[reVC release];
[nav release];

}

/*

pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation

*/

@end



//
// RegisterViewController.h
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <UIKit/UIKit.h>

@interface RegisterViewController : UIViewController

@end


//
// RegisterViewController.m
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "RegisterViewController.h"

@interface RegisterViewController ()

@end

@implementation RegisterViewController

/*

pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation

*/

@end



//
// WelcomeViewController.h
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <UIKit/UIKit.h>

@interface WelcomeViewController : UIViewController

@end


//
// WelcomeViewController.m
// UI7_作业2
//
// Created by YIem on 15/12/15.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "WelcomeViewController.h"

@interface WelcomeViewController ()

@end

@implementation WelcomeViewController

/*

pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation

*/

@end

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »