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,
Subscribe to Newsletter
Software Updatesmore updates
- Dropbox adds file/folder renaming and Office document editing to iOS app
- Vizzywig 8xHD price tag now a very affordable $49.99
- Automatic targets teen drivers with License+ service
- Dropbox adds support for TouchID
- YouTube for iOS gets updated with full support for iPhone 6 and 6 Plus
- iOS 8.0.1 update now available (Updated -- Don't update!)