xcode - iOS/Swift/Storyboard: Add PageViewController using only *part* of screen? -


new swift. i've seen many tutorials on using pageviewcontroller, have page view taking whole screen.

i'm trying implement page view functionality in part of app, not entire screen, other "static" elements (e.g. toolbar) can remain. kinda this...

https://imgur.com/9wm1vll --- (need more rep. before embedding images)

...where swiping cause different images appear seen in various pageviewcontroller tutorials (e.g. http://www.appcoda.com/uipageviewcontroller-storyboard-tutorial/).

when start single view application, go storyboard , try drag "page view controller" object library viewcontroller frame, "bounces back", i.e. won't let me add page view controller.

now, if add page view controller white space around other view controller, gets tutorials pageviewcontroller takes entire screen , don't want that.

how 1 achieve this?

thanks.

sorry if dupe have tried & failed find answers question directly. closest implement pageviewcontroller in tableviewcontroller details or adding uipageviewcontroller subview, subview shows edge of pagecontentview, these not similar enough me comprehend, plus they're in objective c i've not yet learned.

when start single view application, go storyboard , try drag "page view controller" object library viewcontroller frame, "bounces back", i.e. won't let me add page view controller.

a page view controller view controller. thus, make view occupy part of screen, must obey rules view controllers in general: need custom parent view controller, , page view controller must child view controller — , must elaborate dance entails when create child , put view interface.

to storyboard dance you, use container view , hook embed segue page view controller:

enter image description here

enter image description here

(still, in opinion better learn dance manually, in code, yourself.)


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -