Xcode self-lead file modification and cache emptying

Source: Internet
Author: User

1.Xcode path from the lead file

/applications/xcode.app: Right-click application xcode-> Display Package Contents

/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/ Iphonesimulator7.1.sdk/system/library/frameworks/uikit.framework/headers

2. After modifying the system self-lead file, Xcode will error

Solution: Delete the cache of the following folder (Star is the user name of the computer)

Resource Library: Library

/users/star/Resource Library/developer/xcode/deriveddata

Or

/users/star/library/developer/xcode/deriveddata

3. To encapsulate a custom view using Xib

1> Create a custom view that inherits UIView, assuming the class name is called (Mjappview)

2> Create a new Mjappview.xib file to describe the structure inside the Mjappview

3> Modifying the type of UIView is Mjappview true Type

4> the inner child control with the Mjappview property connection

5> Mjappview provides a model property

6> overrides the set method of the Model property, because the model data passed in the set method can be obtained

7> The model data, setting the data to the corresponding sub-controls separately

8> Add: Provides a class method to create a mjappview that masks the code that reads the Xib file.

Xcode self-lead file modification and cache emptying

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.