Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

  • What is NinePatch?
  • The Tortuga 22 blog post.
  • The source code at git hub.

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

like image 574
ABeanSits Avatar asked Nov 05 '22 12:11

ABeanSits


1 Answers

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!)

like image 122
shaioz Avatar answered Nov 12 '22 13:11

shaioz