How can I bring up source code editor for the ViewControler

I am Main.storyboard and the there are a label and a button on the View Controller/view. I wanted to edit the source code but could not bring up the Source Code editor. In Visual Studio it is as simple as putting mouse on the View or control and right click mouse and choose View Source Code.

Storyboards and xib files are just xlm files. There is little point in viewing them in source

form as there is no code to edit. The contents are just objects with positioning data.

Thank you RLKing. I was reading the book "Programming in Objective-C, 6th edition" by Stephen G. Kochan. On page 467 there is this practice that the code for "ViewController.h" and the main.storyboard view appear in the same IDE. And there is holding Control key on label and button and dragging them into the source code view. It's mean to connect the control and the method. In that book the click method was inserted first and the the button was added later. That book was for Xcode 4 and iOS7. Now it's different in Xcode7 and iOS9.

When you have the storyboard displayed in Xcode, and you've selected a view controller, you want to switch from Standard Editor (which shows a single pane in the center of the IDE) to Assistant Editor (showing two panes). Do this by selecting the menu item 'View -> Assistant Editor -> Show Assistant Editor' or by clicking the Assistant Editor icon in the toolbar (the two-overlapping-circles icon in the next-to-last group of three icons).


By default this will show the source code for that view controller in the second pane. (The word 'Automatic' and the two-overlapping-circles icon should appear in a popup menu in the title bar above the source code.) If that menu says something different, click on it to select 'Automatic'.


Hope this helps.

How can I bring up source code editor for the ViewControler
 
 
Q