I have an existing view controller derived from UIViewController that I'm trying to drag a view into but the storyboard editor won't let me. If I create a new viewcontroller in storyboard it will let me and I notice it has some autolayout controls... something the original viewcontroller doesn't have.
I don't want to delete the original view controller and recreate since it already has a lot of the push segues and what not hooked up to it. How can I get it to allow me to drop views/tableviews onto the storyboard surface of the viewcontroller?
Have you try to :
Have you try to add it like that ( drag & drop on view hierarchy ) ?
Autolayout
is a way to manage how views are placing comparing to others views.
You can activate or desactivate by clicking on your viewcontroller and by clicking this checkbox, it will affect to whole storyboard :
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.