Latest | 0.0.2 |
---|---|
Homepage | https://github.com/aidenluo177/ADToolkit |
License | BSD |
Authors |
The library provides some useful objective-c categories
It provides:
- Scaling a UIImage likes what UIImageView contentMode do
- Add more feature later
Environment
iOS 6.0
How to use
Installation with CocoaPods
pod 'ADToolkit', '~>0.0.0.1'
Add the ADToolkit project to your project
- Download and unzip the last version of the lib from the download page
- Right-click on the project navigator and select "Add Files to "Your Project":
- In the dialog, select ADToolkit.xcodeproj:
- Check the "Copy items into destination group’s folder (if needed)" checkbox
Add dependencies
- In you application project app’s target settings, find the "Build Phases" section and open the "Target Dependencies" block:
- Click the "+" button again and select the "ADToolkit"
- In you application project app’s target settings, find the "Build Phases" section and open the "Link Binary With Libraries" block:
- Click the "+" button again and select the "libADToolkit.a"
Add Linker Flag
Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag
Import headers in your source files
In the source files where you need to use the library, import the header file:
#import "ADToolkit.h"
Build Project
At this point your workspace should build without error. If you are having problem, post to the Issue and the
community can help you solve it.
Latest podspec
{ "name": "ADToolkit", "version": "0.0.2", "summary": "Some useful categories", "homepage": "https://github.com/aidenluo177/ADToolkit", "license": "BSD", "authors": { "aidenluo": "[email protected]" }, "source": { "git": "https://github.com/aidenluo177/ADToolkit.git", "tag": "0.0.2" }, "source_files": "ADToolkit/*.{h,m}", "requires_arc": false }
Sun, 06 Mar 2016 15:20:05 +0000