开发者

tableview header logo like iBooks App

开发者 https://www.devze.com 2023-03-16 12:22 出处:网络
How can I insert an image in the header of a tableView so that it stays has the iBook App? When you scroll down, Apple\'s logo appears, and when you let g开发者_运维知识库o, is disappear?

How can I insert an image in the header of a tableView so that it stays has the iBook App? When you scroll down, Apple's logo appears, and when you let g开发者_运维知识库o, is disappear?

Is works, I guess, just like a view in the table's header, but if that's so, how to create that condition to hide like the iBooks App does?

Thanks,

RL


The iBook app doesn't use a UITableView (my guess), but a UIScrollView.

A UITableView isA UIScrollView however.

And I don't think what you're asking about is really a "header". It's hidden content above the content of the scroll view.

A scroll view had a contentSize rectangle, (which is usually bigger that its bounds), and a contentOffset point (in which only the y value is offset in a table view).

You want to add a child view to the scroll/table view with it's frame set to have a negative y value (likely the equivalent of its height).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号