Search code examples
iphoneobjective-cnine-patch

How do I go about including the Tortuga 22 NinePatch library to my XCode project?


First of all, there is finally NinePatch support for the iPhone, BIG thanks to the Tortuga 22 team for that. Unfortunately for me I have not been able to add their library to my project.

If I just drag and drop the source-files into my project I get a ton of "No such file or directory"-errors. If I reference the libNinePatch.a-file as an external framework I get the same result.

What is the proper way of doing this? There are no instructions from their part so I guess there must a fairly straight forward way of doing this.

Thanks in advance.
//Abeansits


Solution

  • I just like to tell everyone still struggling with this that I've uploaded a podspec to CocoaPod's repository.

    This means that if your project uses CocoaPods (and why wouldn't it?), you can just add:

    pod 'Tortuga22-NinePatch'

    To your Podfile and you'll have NinePatch support. (notice it's still not ARC-compatible, pull requests are welcome!)