LEADTOOLS Support
General
General Questions
How to set license information in iOS / Mac OS
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 26, 2013 9:41:08 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 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];
LEADTOOLS Support
General
General Questions
How to set license information in iOS / Mac OS
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.