iOS UI 03 事件和手势

谁说我不能喝 提交于 2020-01-29 15:01:03


//

//  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 = @"

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!