iOS 开发学习笔记 3

iOS 开发学习笔记 3

今天学习Psychologist


遇到的一个问题是,Xcode生成的ViewController class name is "ViewController", I want change it to "PsychologistController", this can be done by:

    1. click on the class name (in the source code)

     2. edit->refactor->rename


then another problem is, 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://*.com/questions/19370208/how-to-connect-storyboard-to-viewcontroller


  1. Choose your view controller in the list of scenes on the left side.

iOS 开发学习笔记 3

2. Choose the Identify Inspector on the right side.

3. Choose the custom view controller class from the Class list.

iOS 开发学习笔记 3