-
-
Save DevKang/00fc95a619e7d46f64e57381cd1be60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override init() { | |
... | |
let realmPath = NSSearchPathForDirectoriesInDomains(.CachesDirectory, .UserDomainMask, true)[0] | |
self.myDB = try! Realm(fileURL: NSURL(fileURLWithPath: realmPath + "/data.realm")) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment