The library provides some useful objective-c categories It provides:
- Scaling a UIImage likes what UIImageView contentMode do
- Add more feature later
iOS 6.0
pod 'ADToolkit', '~>0.0.0.1'
- 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
- 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"
Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag
In the source files where you need to use the library, import the header file:
#import "ADToolkit.h"
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.