码迷,mamicode.com
首页 > 移动开发 > 详细

iOS 开发学习笔记 3

时间:2016-12-11 18:51:30      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:网易公开课 iphone psychologist storyboard controller

今天学习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://stackoverflow.com/questions/19370208/how-to-connect-storyboard-to-viewcontroller


  1. 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.

技术分享

iOS 开发学习笔记 3

标签:网易公开课 iphone psychologist storyboard controller

原文地址:http://sunhongbo.blog.51cto.com/4382014/1881657

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!