微信的消息列表,往下拖动能够显示后面的微信logo,这两个view(或layer),怎么叠放来实现这种效果?
|
failed123Nov 14, 2013
1
logo 是在 self.view 上吧
前面消息列表是 UITableView , tableView_.backgroundView = nil; tableView_.backgroundColor = [UIColor clearColor]; |
|
yellowV2exNov 15, 2013
3
tableview变透明底,然后tableview下面加个背景就好啦
要用UIViewController |
|
4
@yellowV2ex 我也是这么想的,可这样不行,你可以试下。
|
|
failed123Nov 15, 2013
5
@Veelian 你应该是在 7 的模拟器试的吧~
你需要这句 self.automaticallyAdjustsScrollViewInsets = NO ; // 禁用 ScrollView 自动延伸到导航栏及状态栏 |
|
failed123Nov 15, 2013
6
@Veelian
对了,表视图的纵坐标也要从 64 开始, 如→ initWithFrame:CGRectMake(0, 64, 320, 568) 因为在 7 里 滚动视图 默认有很大改变~ 默认延伸到了 导航栏 之下,为了体现毛玻璃的特性,所以就把 self.view 盖住了。 |
|
gluttonyNov 19, 2013
7
@Veelian 把消息列表页放在一个UIScrollView里,并且设置UIScrollView的属性 bounces = YES 和 alwaysBounceVertical = YES 。
https://gist.github.com/gluttony/7542040 |
|
8
@gluttony thanks,还是不行,[_containerView addSubview:logoImageView]; 这样会让拖动_containerView的时候,logoImageView也跟着动。
|
|
gluttonyNov 20, 2013
9
|
|
11
|