[quote=引用 2 楼 woashizhangsi 的回复:] 使用及 UITableView 设置代理后一定会重写cell高度的方法-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { return 40; }这里的高度如果比显示的内容小的话就会出现你说的“向上拖动后tableView 的内容没有显示完全”的情况
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { return 40; }
使用及 UITableView 设置代理后一定会重写cell高度的方法-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { return 40; }这里的高度如果比显示的内容小的话就会出现你说的“向上拖动后tableView 的内容没有显示完全”的情况
例如我的这一屏幕的名称为SJ,要显示比屏幕大的对象使用UIScrollView SJ *sj = [[SJ alloc]initWithFrame:screenRect]; [scrollView addSubView:sj]; screenRect.orign.y+ = screenRect.size.height; //表示创建了2个sj屏幕的大小。一定要用UIScrollerView
29,027
社区成员
12,466
社区内容
加载中
试试用AI创作助手写篇文章吧