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
- Remote Desktop update brings OS X Mavericks support and improved multi-display support
- Valve revamps Steam Mobile for iOS
- Google Drive iOS app finally lets you sort items and find and replace in documents
- Viber announces Viber Out calls for iOS, goes head to head with Skype
- Amazon Cloud Drive Photos gains video, iPad support
- Pandora Radio 5.1: Wake up to your favorite station