SSToolkit is a collection of well-documented iOS classes for making life easier by solving common problems all iOS developers face. Some really handy classes are SSCollectionView, SSGradientView, and many more.
SSToolkit aims to be as easy to use as possible. There are some limitations on distributing iOS libraries, so this is the simplest way to get started with SSToolkit. It's painless after this, promise.
Run the following commands to download the source code:
$ mkdir -p Vendor/SSToolkit $ curl -L https://github.com/soffes/sstoolkit/tarball/master | tar xz --strip 1 -C Vendor/SSToolkit
If you prefer, you can just download the code from Github and put in
Vendor/SSToolkit (relative to your project root).
Run the following command to add the submodule. Be sure you have are you in the root of your git repository.
$ git submodule add https://github.com/soffes/sstoolkit.git Vendor/SSToolkit
In Finder, navigate to the
Vendor/SSToolkit folder and drag the
xcodeproj file into your Xcode project.
Select your main Xcode project from the sidebar in Xcode and then select the target you want to add SSToolkit to.
Select the Build Phases tab.
Under the Target Dependencies group, click the plus button, select SSToolkit and SSToolkitResources from the menu, and choose Add.
Under the Link Binary With Libraries group, click the plus button, select
libSSToolkit.a from the menu, and choose Add. Be sure you have
MessageUI.framework added to your project as well.
Expand the Copy Bundle Resources group. Expand the SSToolkit project in the sidebar so you can see the Products folder in the SSToolkit project. Click and drag SSToolkitResources.bundle into the Copy Bundle Resources build phase.
Choose the Build Settings tab. Make sure All in the top left of the bar under the tabs.
Vendor/SSToolkit to Header Search Path (do not click the Recursive checkbox).
-all_load -ObjC to Other Linker Flags.
That's it. The annoying part is over. Now to the fun part.
To use SSToolkit, simply add the following line to your source file. I recommend adding this to your prefix to make things easy.
You can also import individual files instead of the whole framework (for faster compile times) by doing something like:
If you are going to use SSToolkit's categories, you will need to import then separately (since some people might not want to use them). You import them like this:
SSCatalog is available on GitHub. It is a universal iPhone/iPad application to demonstrate the various features of SSToolkit.
Simply open the Xcode projectand build. There are demos for most of SSToolkit.
If you're using this in your project, I'd love to hear about it! Send me an email and let me know which pieces you're using and such.
Here are some of my other libraries. Some of these used to be part of SSToolkit.