iOS Development--Path & mixed paths and global macro paths

Source: Internet
Author: User

Mixed paths and global macro paths

Recently in the work of a place to use a third-party library, but the current swift version has not been found, and do not want to write (in fact, do not write), so think of the mixed, but in the middle there are a lot of problems, the deepest impression is the bridge file path problem, Let me think about Xcode6 before a PCH file path, although not the same, but, I was very silly to make a long time before straightened out, so summed up some.

One: Mixed paths

On the mixed, there is not much to say. Usually we want to implement a function, but in swift there is no good way to find, but just objective-c is very easy to implement (or the third party libraries) we will think of a mixed, generally, we will build a relatively swift OC file for the mixing, This time the Xcode cocktail automatically generated for us to bridge the file and set up the bridge path, but sometimes we do not build the live when we built, this time we need to configure the path, here do not say the specific steps, detailed see SWIFT and OC mixed details, here only give the bridge path pictures, I hope you can read it!

Two: Global macros

Since Xcode6, the PCH file that comes with the system no longer exists, so we need to create it ourselves, and this PCH file needs its own path to use, although we can usually create a common file to achieve the function of global macros, but the individual still like the PCH, So every time a lot of things will think of this, and this PCH file more of the bridge file path is not the same, but perhaps you are so stupid to divide, such as me, about the PCH file of the new here is not much to say, directly on the path picture.

iOS Development--Path & mixed paths and global macro paths

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.