//
// RootViewController.m
// UI - 04 事件,手势
//
// Created by dllo on 15/11/11.
// Copyright (c) 2015年 dllo. All rights reserved.
//
#import "RootViewController.h"
@interface RootViewController ()
@property (nonatomic, retain) UILabel *label1;
@end
@implementation RootViewController
- (void)dealloc
{
[_label1 release];
[super dealloc];
}
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
//轻拍手势
// UITapGestureRecognizer * tapGR = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction:)];
//为某一视图添加手势
// [self.view addGestureRecognizer:tapGR];
// [tapGR release];
self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(100, 180, 300, 300)];
self.label1.text = @"