Learn psychologist Today
One problem is that Xcode generates the Viewcontroller class name is "Viewcontroller", I want the change it to "Psychologistcontroller", the This can Done by:
1. Click on the class name (in the source code)
2. Edit->refactor->rename
Then another problem are, the storyboard can ' t connect to the new named Controller,
Need to change the customer class in the Story board editor:
As desribed in:
Http://stackoverflow.com/questions/19370208/how-to-connect-storyboard-to-viewcontroller
-
Choose your view controller in the list of scenes on the left side.
650) this.width=650; "src=" Https://i.stack.imgur.com/Qh1P9.png "width=" 302 "height=" 238 "alt=" Qh1p9.png "/>
2. Choose the Identify Inspector on the right side.
3. Choose The custom View controller class from the class list.
650) this.width=650; "src=" Https://i.stack.imgur.com/3entO.png "width=" 254 "height=" 209 "alt=" 3ento.png "/>
IOS Development Learning Note 3