Skip to content

Commit de4a3f6

Browse files
committed
Remove YYKit dependency
1 parent d1c764f commit de4a3f6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

SJDBMap.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ s.source_files = 'SJDBMap/*.{h,m}'
1616
s.requires_arc = true
1717

1818
s.ios.library = 'sqlite3'
19-
s.dependency 'YYKit'
19+
2020
end

SJDBMapProject/ViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ - (void)viewDidLoad {
4949
NSLog(@"\n%@", NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).lastObject);
5050

5151

52-
[self insertOrUpdate];
52+
// [self insertOrUpdate];
53+
[self query];
5354

5455
// Do any additional setup after loading the view, typically from a nib.
5556
}
@@ -116,7 +117,9 @@ @implementation ViewController (Query)
116117

117118
- (void)query {
118119
[[SJDatabaseMap sharedServer] queryAllDataWithClass:[Person class] completeCallBlock:^(NSArray<id> * _Nonnull data) {
119-
// ...
120+
[data enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
121+
NSLog(@"%@", obj);
122+
}];
120123
}];
121124
}
122125

0 commit comments

Comments
 (0)