Skip to content

Commit

Permalink
cheap change to fix a bug if you have a space in your app name.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarmstrong committed Nov 4, 2015
1 parent f42398b commit df4c75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SuperRecord/SuperCoreDataStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import UIKit
import CoreData

let infoDictionary = NSBundle.mainBundle().infoDictionary as NSDictionary?
let stackName = infoDictionary!["CFBundleName"] as! String
let stackName = infoDictionary!["CFBundleName"]!.stringByReplacingOccurrencesOfString(" ", withString: "_")
let storeName = stackName + ".sqlite"

let applicationDocumentsDirectory: NSURL = {
Expand Down

0 comments on commit df4c75b

Please sign in to comment.