TWToolkit makes life easy as an iPhone developer.
Note: OAuth features have been abstracted out and moved into TWOAuthKit.
- TWURLRequest - convenient request wrapper
- TWURLConnection - simple remote connections
- TWURLConnectionQueue - connection queueing
- TWPickerViewController - easily create picker view controllers like the Settings app
- TWHUDView - simple heads-up display
- TWLoadingView - flexible loading view
- TWGradientView - easily create gradients
- TWRemoteImageView - remote images made easy
Table View Cells
- TWSwitchTableViewCell - cell with a switch
Several categories are included in TWToolkit used throughout TWToolkit.
Adding TWToolkit 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 email@example.com:tastefulworks/twtoolkit.git Frameworks/TWToolkit
In Finder, navigate to the
Frameworks/TWToolkitfolder and drag the
xcodeprojfile into the
Frameworksfolder in your Xcode project.
In Finder, drag
Resourcesfolder in your Xcode project.
Select the TWToolkit Xcode project from the sidebar in Xcode. In the file browser on the right in Xcode, click the checkbox next to
libTWToolkit.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 TWToolkit 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/TWToolkitto Header Search Path (do not click the Recursive checkbox). It may help to use search for it in the Search in Build Settings field.
-all_load -ObjCto Other Linker Flags.
To use TWToolkit, 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: