SDK Setup

Get started with your iOS implementation.

Downloads

Download iOS SDK
Download the latest version of the iOS SDK.

1 Add to project

Add the Paddle framework to your Xcode project by dragging from the finder. macsdk-addtoproject

2 Add to target

Make sure you ‘Add To Target’ for your app. macsdk-addtotarget

3 Linker flags

You will also need to drag the Paddle-iOS.bundle file to your project and under build settings you should add -ObjC to Other Linker Flags to allow the framework to function correctly. iossdk-add-other-linker-flags

4 Integration code

The only remaining job is to import the headers into your class (usually AppDelegate.h) and set your keys.


#import <Paddle-iOS/Paddle.h>
	
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
	    Paddle *paddle = [Paddle sharedInstance];
	    [paddle setProductId:@"503866"];
	    [paddle setVendorId:@"13578"];
	    [paddle setApiKey:@"298c1c56fa2c2733220d54fdf211ea49"];
}

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
	    let paddle = Paddle.sharedInstance()
	    paddle.setProductId("503866")
	    paddle.setVendorId("13578")
	    paddle.setApiKey("298c1c56fa2c2733220d54fdf211ea49")
}