Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonymillion/expandingview
A pinterest / piictu style expanding controller
https://github.com/tonymillion/expandingview
Last synced: 10 days ago
JSON representation
A pinterest / piictu style expanding controller
- Host: GitHub
- URL: https://github.com/tonymillion/expandingview
- Owner: tonymillion
- Created: 2012-03-03T09:31:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-21T22:31:48.000Z (almost 11 years ago)
- Last Synced: 2024-10-13T11:10:59.304Z (24 days ago)
- Language: Objective-C
- Homepage:
- Size: 138 KB
- Stars: 197
- Watchers: 18
- Forks: 25
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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.