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

2015-11-17 23:42:29 +08:00
 fhefh

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

2345 次点击
所在节点    iOS
10 条回复
regothic
2015-11-18 00:49:37 +08:00
置后一个 ImageView?
so898
2015-11-18 01:27:39 +08:00
UITableView 的 background color 设置为[UIColor clearColor]
在 UITableView 的后面放置一个 UIImageView

在我印象中还有中方法可以实现来着,但是比较蛋疼,基本上只有那些 Refresh 库才会用上……
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
2015-11-18 07:37:52 +08:00
想问一下,最上面这三个可以左右滑动的图片也是 Cell ?
zjmdp
2015-11-18 09:46:16 +08:00
@tianshilei1992 可以是 cell
qq2511296
2015-11-18 10:29:36 +08:00
UIImageView *imageView = [[UIImageView alloc]initWithFrame:_tableView.bounds];

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

@vileer 先用 airserver 让 iphone 显示到 mac 上,然后再用 GifGrabber 录制~~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/236931

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX