Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, November 26, 2013 9:46:08 AM(UTC)


Groups: Guests
Posts: 3,049

Was thanked: 1 time(s) in 1 post(s)

When looking at the project structure for our MacOS and iOS demos, you will notice that we include a folder named 'Common' that includes UnlockSupport.m. In order to use the license file you'll receive from our sales department, you'll need to include it (the license file) as a resource somewhere in your application structure, such as adding it to your 'Resources' folder.

Once the license file has been included with your project, you can refer to it's path by using the NSBundle.pathForResource method.

Here is an example of it's usage in the UnlockSupport.setLicencse method:

// In this case, the license file has the name 'Lead18.lic' and was added to the 'Resources folder

NSString* filePath = [[NSBundle mainBundle] pathForResource:@"Lead18" ofType:@"lic" ];
NSString * licenseFilePath = filePath;
NSString * developerKey = @"contents of corresponding *.key file";

[LTRasterSupport setLicenseFile:licenseFilePath developerKey:developerKey error:&error];

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2017, Yet Another Forum.NET
This page was generated in 0.099 seconds.