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 =
@"
// 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 =
@"
相关文章推荐
- iOS UI 03 事件和手势
- UIButton中
- iOS UI 02 UIimageview 和模态切换
- iOS UI 02 UIimageview 和模态切换
- go build命令
- iOS UI 01 课堂笔记 -设计模式
- iOS UI 01 课堂笔记 -设计模式
- IOS UI 01 课堂笔记 -label
- IOS UI 01 课堂笔记 -label
- 使用yuicompressor-maven-plugin插件压缩JS和CSS静态资源
- UILabel: 如何可以更改除底部外的所有边框?
- Android 异步更新UI----handler+thread
- WebKit之CSSValue的继承关系
- JSP利用过滤器解决request中文乱码问题
- JavaSe String,StringBuffer,StringBuilder 简要区别(随记一)
- iOS环信3.0集成 (二)UI文件集成
- iOS多线程开发——NSOperation/NSOperationQueue浅析
- 使用Fluent API进行属性映射【Code-First系列】
- leetcode -- Permutation Sequence -- 重点
- APUE学习记录——进程环境