12345678910111213141516171819202122 |
- #import "AppDelegate.h"
- #import "GeneratedPluginRegistrant.h"
- @implementation AppDelegate
- - (BOOL)application:(UIApplication *)application
- didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- [GeneratedPluginRegistrant registerWithRegistry:self];
- // Override point for customization after application launch.
- NSString *filePath = [[NSBundle mainBundle] pathForResource:@"developer_guide_ios" ofType:@"pdf"];
- NSString *documentFolder = [NSHomeDirectory() stringByAppendingFormat:@"/%@/%@", @"Documents",@"Samples"];
- if (![[NSFileManager defaultManager] fileExistsAtPath:documentFolder])
- [[NSFileManager defaultManager] createDirectoryAtURL:[NSURL fileURLWithPath:documentFolder] withIntermediateDirectories:YES attributes:nil error:nil];
- NSString * documentPath = [documentFolder stringByAppendingPathComponent:filePath.lastPathComponent];
- if (![[NSFileManager defaultManager] fileExistsAtPath:documentPath])
- [[NSFileManager defaultManager] copyItemAtURL:[NSURL fileURLWithPath:filePath] toURL:[NSURL fileURLWithPath:documentPath] error:nil];
- return [super application:application didFinishLaunchingWithOptions:launchOptions];
- }
- @end
|