重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
今天学习Psychologist
成都创新互联公司主要从事网站建设、网站设计、网页设计、企业做网站、公司建网站等业务。立足成都服务山阴,十载网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18982081108
遇到的一个问题是,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://stackoverflow.com/questions/19370208/how-to-connect-storyboard-to-viewcontroller
Choose your view controller in the list of scenes on the left side.
2. Choose the Identify Inspector on the right side.
3. Choose the custom view controller class from the Class list.