Need help with ExpandingView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tonymillion
200 Stars 30 Forks 8 Commits 2 Opened issues

Description

A pinterest / piictu style expanding controller

Services available

!
?

Need anything else?

Contributors list

# 11,533
Objecti...
Shell
Ruby
iOS
4 commits
# 114,121
Objecti...
Swift
Shell
system-...
1 commit
# 543,778
Objecti...
1 commit

This is a really quick emulation of the pinterest / piictu style UI where the navigation bar and tabbar slide off screen when a tableview is scrolled up, then reappear when the tableview is scrolled down.

I knocked it up very quickly as a demo to see how they do it. I use a category on UITabBarController to hide/show the UITabBar.

For the most part it works exactly as the other apps do - there is a slight visual thing where the tabbarviewcontroller content will resize before the tabbar has completed the slide in animation. After carefully looking at the pinterest app I can see they have the same problem.

What would be best would be to subclass UITabBarController so it can keep a certain amount of state internally and resize the content properly - however this is discouraged by Apple, so this is the best trade off.

The secret to hiding the red flash is to set the windows background colour to the background colour of your table, the animation is so fast that unless you're looking for it, you wont see it.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.