Skip to content

Commit

Permalink
语法高亮
Browse files Browse the repository at this point in the history
  • Loading branch information
y500 authored Sep 4, 2017
1 parent 7cddf3e commit d4d2893
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ $ pod install

import at AppDelegate.m:

```
```objc
#import YYDebugDatabaseManager.h
```

making one line code at `application:didFinishLaunchingWithOptions`:

```ruby
```objc
[[DebugDatabaseManager shared] startServerOnPort:9002];
```
#### Not run in Release
```
```objc
#ifdef DEBUG
[[DebugDatabaseManager shared] startServerOnPort:9002];
#end
Expand All @@ -63,12 +63,12 @@ making one line code at `application:didFinishLaunchingWithOptions`:

It only shows the databasesin in Documents directory and Library/Cache directory by default, if you want show databases in other directories, you can use:

```
```objc
- (void)startServerOnPort:(NSInteger)port directories:(NSArray*)directories
```
for example:

```
```objc
NSString *resourceDirectory = [[NSBundle mainBundle] resourcePath];
NSString *databaseDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/database"];
NSString *documentDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documnets"];
Expand Down

0 comments on commit d4d2893

Please sign in to comment.