V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fhefh
V2EX  ›  iOS

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

  •  
  •   fhefh · Nov 17, 2015 · 2884 views
    This topic created in 3813 days ago, the information mentioned may be changed or developed.

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

    10 replies    2015-11-21 00:52:46 +08:00
    regothic
        1
    regothic  
       Nov 18, 2015
    置后一个 ImageView?
    so898
        2
    so898  
       Nov 18, 2015
    UITableView 的 background color 设置为[UIColor clearColor]
    在 UITableView 的后面放置一个 UIImageView

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

    [_tableView setBackgroundView:imageView];
    shiltian
        7
    shiltian  
       Nov 18, 2015
    @zjmdp 喔,好的,谢谢。
    vileer
        8
    vileer  
       Nov 19, 2015
    我来歪个楼,请问楼主这个 gif 用什么来录制的?
    czwen1993
        9
    czwen1993  
       Nov 20, 2015
    @vileer 估计是通过 mac 的 QuickTime 录的视频 再转 gif
    fhefh
        10
    fhefh  
    OP
       Nov 21, 2015

    @vileer 先用 airserver 让 iphone 显示到 mac 上,然后再用 GifGrabber 录制~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3574 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 11:09 · PVG 19:09 · LAX 04:09 · JFK 07:09
    ♥ Do have faith in what you're doing.