There are two instances that come to mind in the new iOS 5 where a user can drag down to reveal a view. If the user drags down from the status bar at the top of the screen, it will reveal the notification center,
Also, if the user is in the Weather app and drags down on a specific day of the week, it will reveal the hourly forecast,
Is there a simple drop-in framework that can offer me this functionality? Or is there example code out there on the internet to be able to mimic it?
Go to Settings > Face ID & Passcode (on an iPhone with Face ID) or Touch ID & Passcode (on other iPhone models). Enter your passcode. Scroll down and turn on Notification Center (below Allow Access When Locked).
Notification Center shows your notifications history, allowing you to scroll back and see what you've missed. There are two ways to see your alerts from the Notification Center: From the Lock Screen, swipe up from the middle of the screen. From any other screen, swipe down from the center of the top of your screen.
Find your notifications in Notification CenterOn the Lock Screen: Swipe up from the middle of the screen. On other screens: Swipe down from the top center. Then you can scroll up to see older notifications, if there are any.
What you want to use is a UISwipeGestureRecognizer
to detect the swipe and update your UI.
If anyone's interested, I've posted up code of how I accomplished this here: JCWindowShade. The relevant code for tracking is here: handleDrag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With