IOS Development Learning Note 3

Source: Internet
Author: User

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


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.