ios - UIPageViewController: how to have "negative" spacing between view controllers (with scroll-transition style) -


i have implement view controller (on iphone, portrait only, full screen view) upper part of view must have horinzontal, paged scrolling behavior, potentially infinite.

i used similar purposes uipageviewcontrollers, take advantage of datasource , delegate protocols, helpul manage memory , other stuff (keeping 3 view controllers in memory, providing delegates handle actions when transition done , on): think in case component best choice.

but here comes problem. in view i'm realizing, have let user understand can swipe left , right move view: page control not choice, since scroll potentially infinite, let small portion of views of left , right view controllers visible.
that:

link image (sorry cannot include images in posts yet)

up have not been able figure out how realize this. in options during initialization, uipageviewcontrolleroptionspinelocationkey can specified set (from documentation) "space between pages, in points": seems work positive value, space increases, while ignores negative values reduce space.

i hope there might solution using page view controllers, since @ same time need refresh table view in lower part of screen when transition complete, , delegate method of page controllers ideal aim. maybe collection view can alternate solution, more complicated , i'm not sure how obtain behavior 1 described refresh table view.

if needed can attach code , screenshot of prototype

ok, understand not possible , why is. datasource methods load, when needed, view controllers before , after current one. making these view controllers' views visible, desired, require datasource loads more 1 view controllers after (or before, depends on direction of scrolling) current one, ready pan actions (potentially, before animation ended user lifting finger, 2 view controllers "after" or "before" become visible desired configuration), , not intended uipageviewcontroller on iphone, in portrait mode.

so actually, way achieve more 1 view visible in horizontal-scrolling component @ time, implement uiscrollview horizontal paging , calculate contentsize , other sizes accordingly.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -