ios - Xcode how do I duplicate a View Controller? I've had this complication for days -
how duplicate view controllers, don't have re-place menu screen in ui, because stays constant throughout each screen.
however 'view controller scene' not in project navigator...
so told me: "you have right click in project navigator , create new file. select "cocoa touch class" , create subclass of uiviewcontroller."
i did that, gives me code files, not 'view controller scene' in can copy 'view controller' in order have 2 of same on storyboard.
i using objective c, , have had problem days, can please me out?
in first photo, have "view controller" highlighted, click on left arrow open view hierarchy. select view comprises menu , hit command + d or edit > duplicate.
this create duplicate version of menu in same viewcontroller. grab duplicated copy , move other scene want in storyboard
edit: you're looking @ wrong menu. click on main.storyboard , in bottom left of storyboard, click little menu icon opens document outline. alternatively, go editor > show document outline when main.storyboard selected
Comments
Post a Comment