简体   繁体   中英

Storyboard: can't drag view to viewcontroller

I'm new to iOS, I'm following this tutorial: http://www.appcoda.com/uipageviewcontroller-storyboard-tutorial/ . I just drag and dropped a Page View Controller to the storyboard, and tried to drag an Image View into it, but it bounce back, what am I missing?

When manipulating the content of ViewControllers in storyboards, the zoomlevel must be set to 100%. You might want to check this (simply doubleclick on the ViewController).

UIPageViewController is a container view controller, so you can't put individual views in one in Interface Builder. You need to create one or more individual content view controllers and control-drag from the page view controller to the page content controller and then put actual content in the page content controller.

Walk through the tutorial again, but this time note the references to "page content view controller"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM