UITableview 不滚动? [英] UITableview Not scrolling?

查看:91
本文介绍了UITableview 不滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 cellForRowAtIndex 方法中使用以下代码,但 tableview 没有滚动?

I am using following code in cellForRowAtIndex method, but the tableview is not scrolling?

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView1 dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
}

cell.textLabel.adjustsFontSizeToFitWidth = YES;        

cell.textLabel.text = [NSString stringWithFormat:@"...%@...", hit.neighboringText];

return cell;

推荐答案

试试这个会解决你的问题

try this this will clear your problem

self.myTableView.bounces = YES;

更多信息查看这篇文章

这篇关于UITableview 不滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆