SSToolkit makes life easier. It is made up of various view controllers, views, and categories that I use in all of my apps. Feel free to fork the repo and make it better.
- SSViewController - custom modal craziness
- SSPickerViewController - easily create picker view controllers like the Settings app
- SSMessagesViewController - simple message UI like the built-in SMS app
- SSCollectionView - simple collection view modeled after UITableView and NSCollectionView
- SSGradientView - easily create gradients with optional borders and insets
- SSHUDView - simple heads-up display
- SSLabel - ever wanted to align your text to the top or the bottom
- SSLineView - easily create lines with an inset
- SSLoadingView - flexible loading view
- SSPieProgressView - pie chart style progress bar similar to the one in Xcode's status bar
- SSTextField - simply add edge insets
- SSWebView - handy delegate additions and control over shadows and scroll (still betay)
Several categories are included and used throughout SSToolkit.
Adding SSToolkit to your project
Run the following command to add the submodule. Be sure you have been added to the project on GitHub.
git submodule add git://github.com/samsoffes/sstoolkit.git Frameworks/SSToolkit
In Finder, navigate to the
Frameworks/SSToolkitfolder and drag the
xcodeprojfile into the
Frameworksfolder in your Xcode project.
In Finder, drag
Resourcesfolder in your Xcode project.
Select the SSToolkit Xcode project from the sidebar in Xcode. In the file browser on the right in Xcode, click the checkbox next to
libSSToolkit.a. (If you don't see the file browser, hit Command-Shift-E to toggle it on.)
Select your target from the sidebar and open Get Info (Command-I).
Choose the General tab from the top.
Under the Direct Dependencies area, click the plus button, select SSToolkit from the menu, and choose Add Target.
Choose the build tab from the top of the window. Make sure the configuration dropdown at the top is set to All Configurations.
Frameworks/SSToolkitto Header Search Path (do not click the Recursive checkbox).
-all_load -ObjCto Other Linker Flags.
To use SSToolkit, simply add the following line to your source file.
You can also import individual files instead of the whole framework (for faster compile times) by doing something like:
SSCatalog is included with SSToolkit. There is an iPhone application target and an universal iPad/iPhone application target to demonstrate the various features of SSToolkit.