您的位置:首页 > 产品设计 > UI/UE

iOS UI 03 事件和手势

2015-12-13 15:50 393 查看
//

// 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 =
@"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: