1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| //
| // LHDBPath.m
| // LHDBDemo
| //
| // Created by 3wchina01 on 16/2/26.
| // Copyright © 2016年 李浩. All rights reserved.
| //
|
| #import "LHDBPath.h"
|
| @implementation LHDBPath
|
|
| + (instancetype)instanceManagerWith:(NSString*)dbPath
| {
| static LHDBPath* path = nil;
| static dispatch_once_t onceToken;
| dispatch_once(&onceToken, ^{
| path = [[LHDBPath alloc] init];
| });
| if (dbPath) {
| path.dbPath = dbPath;
|
| }
| return path;
| }
|
| @end
|
|