UIView *topView = [[UIView alloc]initWithFrame:CGRectMake(0, -480, ScreenWidth, 480)];
    UIImageView *iconImage = [[UIImageView alloc]initWithFrame:CGRectMake((ScreenWidth - 35)/2.0,380, 35, 35)];
    iconImage.image = [UIImage imageNamed:@"pic_dropdown.png"];
    iconImage.contentMode = UIViewContentModeCenter;
    [topView addSubview:iconImage];
    topView.backgroundColor = [UIColor colorWithRed:246/255.0 green:246/255.0 blue:246/255.0 alpha:1];
    [_tableView addSubview:topView];

下拉tableView实现类似微信中带图的灰色背景

将topView加到tableView上可以实现

相关文章:

  • 2022-12-23
  • 2021-06-10
  • 2021-12-08
  • 2022-12-23
  • 2022-02-08
  • 2021-07-22
  • 2021-11-26
猜你喜欢
  • 2021-11-12
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2021-11-02
相关资源
相似解决方案