ios - How to implement navigation between UIViewControllers with forward and back transition in IOS7? -
let's have list of articles want navigate through. ios 6 there 2 simple solutions:
- using uipageviewcontroller
- using custom solution uiscrollview, maybe nested one
that's pretty straight forward lacks of flexibility regarding custom transitions. uipageviewcontroller have 2 (page curl , scroll), uiscrollview there scroll.
the transition effect looking 1 introduced apple ios 7. 1 pushing new controller stack, see screenshot:
that comes nice user experience in opinion, works way back, not forward. safari browser supports navigating in both directions, wondering how implemented there and, eventually, how implement list of articles.
thanks hints!
i looked @ exact same problem , built working demo uses uiviewcontroller
containment , subclass of uipangesturerecognizer
. supports:
- gesture-based paging in both directions (tracks touch rather triggers animation on swipe)
- ability enable/disable wrapping (moving page 0 lastindex , back)
- ability enable/disable parallax paging (when disabled standard
uiscrollview
paging
https://github.com/alfiehanssen/ios-viewcontroller-containment
an alternative build pager based on new uiviewcontrollerinteractivetransitioning
, associated protocols.
hope helps...
Comments
Post a Comment