V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fhefh
V2EX  ›  iOS

iOS UITableView 下拉问题,求思路,详情见 gif

  •  
  •   fhefh · 2015-11-17 23:42:29 +08:00 · 2330 次点击
    这是一个创建于 3086 天前的主题,其中的信息可能已经有所发展或是发生改变。

    iOS UITableView 下拉问题,求思路
    下拉后,背景里面的 logo 要出来, Google 和 stackoverflow 没有找到合适的答案
    希望 V 友指导一下

    10 条回复    2015-11-21 00:52:46 +08:00
    regothic
        1
    regothic  
       2015-11-18 00:49:37 +08:00
    置后一个 ImageView?
    so898
        2
    so898  
       2015-11-18 01:27:39 +08:00
    UITableView 的 background color 设置为[UIColor clearColor]
    在 UITableView 的后面放置一个 UIImageView

    在我印象中还有中方法可以实现来着,但是比较蛋疼,基本上只有那些 Refresh 库才会用上……
    zjmdp
        3
    zjmdp  
       2015-11-18 01:32:46 +08:00
    UIImageView *tableViewBg = [[UIImageView alloc] initWithFrame: CGRectMake(x, x, x, x)];
    [tableViewBg setImage:[UIImage imageNamed:@"xxx"]];
    [self.tableView addSubview:tableViewBg];
    tianshilei1992
        4
    tianshilei1992  
       2015-11-18 07:37:52 +08:00
    想问一下,最上面这三个可以左右滑动的图片也是 Cell ?
    zjmdp
        5
    zjmdp  
       2015-11-18 09:46:16 +08:00
    @tianshilei1992 可以是 cell
    qq2511296
        6
    qq2511296  
       2015-11-18 10:29:36 +08:00
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:_tableView.bounds];

    [_tableView setBackgroundView:imageView];
    tianshilei1992
        7
    tianshilei1992  
       2015-11-18 11:52:41 +08:00
    @zjmdp 喔,好的,谢谢。
    vileer
        8
    vileer  
       2015-11-19 00:37:06 +08:00
    我来歪个楼,请问楼主这个 gif 用什么来录制的?
    czwen1993
        9
    czwen1993  
       2015-11-20 14:15:24 +08:00
    @vileer 估计是通过 mac 的 QuickTime 录的视频 再转 gif
    fhefh
        10
    fhefh  
    OP
       2015-11-21 00:52:46 +08:00

    @vileer 先用 airserver 让 iphone 显示到 mac 上,然后再用 GifGrabber 录制~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2521 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:58 · PVG 22:58 · LAX 07:58 · JFK 10:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.