UITableViewCell 上的ImageView响应
来源:互联网 发布:域名交易平台有哪些 编辑:程序博客网 时间:2024/06/05 16:20
TapView继承于UIImageView,接收touch事件。
- (void)viewDidLoad
{
[super viewDidLoad];
self.tableView = [[[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)] autorelease];
self.tableView.delegate = self;
self.tableView.dataSource = self;
[self.view addSubview:self.tableView];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *cellId = @"cell";
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellId];
if(cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
TapView *iv = [[TapView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
iv.userInteractionEnabled = YES;
iv.backgroundColor = [UIColor blueColor];
[cell addSubview:iv];
[cell autorelease];
}
return cell;
}
- UITableViewCell 上的ImageView响应
- ImageView上的Button无法响应
- UITableViewCell中多个Button的响应
- 修改UITableViewCell中ImageView的大小
- iOS UITableViewCell 的 imageView大小更改
- 改变UITableViewCell的imageView的大小(cell.imageView)
- UITableViewCell点击两次才响应的原因
- UIImageView - 解决Button加到ImageView上后Button 无法响应单击事件的方法
- iOS笔记UI--修改系统UITableViewCell的ImageView大小
- UITableViewCell中设置动态大小的圆形imageview
- UITableViewCell长按才会响应
- UITableViewCell中的imageView固定大小
- 自定义UITableViewCell上的delete按钮
- 自定义UITableViewCell上的delete按钮
- 自定义UITableViewCell上的delete按钮
- 自定义UITableViewCell上的delete按钮
- 自定义UITableViewCell上的图片文字
- 获取UITableViewCell上textField值的方法
- Android学习笔记(五四):通知Notification(上)
- Loadrunner11无法打开浏览器问题
- 用javascript获取屏幕高度和宽度等信息
- 页面禁止复制和粘贴的代码
- 查询优化器内核剖析第八篇:执行引擎之数据访问操作---Seek与Lookup
- UITableViewCell 上的ImageView响应
- 手工从零开始建立ARM交叉编译工具链,并使用Eclipse+J-Link ARM-OB STM32调试S5PV210
- 查询优化器内核剖析第九篇:执行引擎之数据访问操作---Bookmark Lookup
- ARC 和 非ARC 下 oc对象和core Foundation对象的转换
- 项目总结SpringMVC+hibernate框架 web.xml 分析(2)
- JSP 连接MySQL配置与使用
- 本来只是个私人吐槽的地方,惨遭陆渝高端黑,围观群众散了吧...
- 机试教程:时间问题
- fastcgi