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.

somebody told me copy this: example

however 'view controller scene' not in project navigator...

enter image description here

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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -