给SCrollView 添加单击事件
来源:互联网 发布:mac珊瑚红唇膏 编辑:程序博客网 时间:2024/05/22 06:30
12345678910111213141516171819202122232425262728
//// GAScrollView.h// Car//// Created by apple on 11-12-17.// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.//
#import <UIKit/UIKit.h>
@protocol GAScrollViewDelegate;
@interface GAScrollView : UIScrollView { id<GAScrollViewDelegate> GADelegate_;}
@property (nonatomic, assign) id<GAScrollViewDelegate> GADelegate;
@end
@protocol GAScrollViewDelegate <UIScrollViewDelegate>
@optional- (void) GAScrollView:(GAScrollView *)scroll touchBegin:(NSSet *)touches withEvent:(UIEvent *)event;
@endname age historymessage GAScrollView.hDecember 17, 20111.0 [SuiFeng]GAScrollView.mDecember 17, 20111.0 [SuiFeng]- Edit this file
123456789101112131415161718192021222324
//// GAScrollView.m// Car//// Created by apple on 11-12-17.// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.//
#import "GAScrollView.h"
@implementation GAScrollView
@synthesize GADelegate = GADelegate_;
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesBegan:touches withEvent:event]; [self.superview touchesBegan:touches withEvent:event]; if ([GADelegate_ respondsToSelector:@selector(GAScrollView:touchBegin:withEvent:)]) { [GADelegate_ GAScrollView:self touchBegin:touches withEvent:event]; }}
@end
- 给SCrollView 添加单击事件
- 给GridView添加行单击事件
- Android给按钮添加单击事件
- 通过单击事件给li添加节点
- 给ScrollView添加touches点击事件
- 给控件添加单击事件--UITapGestureRecognizer
- 给控件添加单击事件--UITapGestureRecognizer
- 给控件添加单击事件--UITapGestureRecognizer
- 给控件添加单击事件--UITapGestureRecognizer
- 给RecyclerView通用Adapter添加Item单击事件
- JS实现动态绑定单击事件给节点添加样式
- Ext4.1 给grid panel的header添加单击事件
- 怎么给a标签或者链接添加单击事件
- DataGridViewButtonColumn添加单击事件
- 为UIImageView添加单击事件:
- UILable如何添加单击事件
- 鼠标添加单击双击事件
- 给DataGridView 添加鼠标单击事件,并且在contexMenutstrip中显示,获取该行的主键
- 程序异常退出时发送邮件报告的代码
- SOAP简单示例
- 如何判断自己IP是内网IP还是外网IP
- IOS博客
- 白盒测试的中逻辑覆盖的强弱
- 给SCrollView 添加单击事件
- VirtualBox的Linux虚拟机访问Windows7的文件
- C#窗体间传递数据
- fuse 框架搭建 编译程序
- C标准库参考指南系列译文(5)limits.h
- 本地化MFMessageComposeViewController,UIImagePickerController等系统页面
- 打造类似visual studio,eclipse功能强大的vim
- ubuntu 11.10安装记录和常用说明
- 十道思想难题