Dev Juice: Help me create a hidden logo
Dear Dev Juice,
How do you implement that slightly egotistical Apple logo hidden in iBooks.app if you drag the bookshelf down from the top?
Ah. You speak of the hidden drag-to-reveal logo. Actually, that's super-easy to do. Just remember that you can add subviews to scroll views and place them in that magic elastic zone at the top.
Take tables for example. Lots of devs now add "pull-to-refresh" feature to the top, similar to Apple's logo. As with the scrollview, make sure to set the origin above the normal start, i.e. use negative numbers of at least the size of whatever view you add.
Here's the basic approach. Adapt it as needed.
// Add the "Pull to Refresh" above the table.
// Ensure bounces and alwaysBounceVertical are enabled.
UIView *pullView = [[[NSBundle mainBundle]
owner:self options:nil] lastObject];
pullView.frame = CGRectOffset(pullView.frame, 0.0f,
Dear Dev Juice, How do you implement that slightly egotistical Apple logo hidden in iBooks.app if you drag the bookshelf down from the...
Subscribe to Newsletter
Software Updatesmore updates
- Daily App: MyScript Calculator solves your hand-written math equations
- Findery app lets you discover the world around you using annotated notes and maps
- The Learnist app brings its crowd-sourced collection of information to your iPhone
- My cat Cinnamon reviews Friskies Cat Fishing 2
- Photo Grid Collage Maker is capable and free
- iExit gets new features and is now free