Trying to integrate a Calendar library that was bu

2019-09-02 11:05发布

问题:

I need a calendar View in my iOS 5 project. I found this Library on github that is exactly what I need. However, it was bult for versions of iOS previous to iOS5.

As a preliminary step of integration, I downloaded the zip files and converted the projects into ARC compatible iOS 5 project using the feature in XCode 4 under "refactor->Convert to Objective-C ARC" to do this. I bult that project and it built fine in iOS5.

Now I m following the instructions on how to integrate the files in my existing project and here is what I did so far: 1) I created a new group in my project called "ImportedFiles" 2) I clicked on "add files" for this group, and selected the entire set of files of the calendar project that I had downloaded and unzipped and copied them into my project.See here:

3) Then after looking at the instructions on the download site. Specifically instruction #3 They ask you to link the files. This is where I gave up. I couldn't figure out what to do.

Could someone please help me in this integration process.

I would like to know 1) If what I have done so far is correct 2) How do I proceed with this after I have copied the files into my test project?

Thanks a lot

回答1:

You need to select the project in the Navigator, then select the target. Under Build Phases, you want to add in the library under the Link Binary With Libraries section.

Furthermore, to have Xcode to help with autofill, you may want to add the absolute path of where the header files are stored in your project to the User Header Search Paths under Build Settings.

Hope that helps!