ui07专题

UI07_Touch

创建一个根视图控制器 @implementation RootViewController#warning 在继承和使用父类的方法的时候,一般会先用super去调用父类相应的方法,目的是为了保证方法的原功能不变,在此基础上再添加我们自己的功能.(一).触摸1.触摸开始.- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)e

UI07_ViewController

viewController,视图控制器创建一个RootViewController类,使它继承于UIViewControllerRootViewController.m#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController根视图控制器的执行流程