Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toddkramer/c2eaa73e196f96be1422 to your computer and use it in GitHub Desktop.
Save toddkramer/c2eaa73e196f96be1422 to your computer and use it in GitHub Desktop.
ExtensionDataSharing04-SharedBooksManager.swift
import UIKit
public class SharedBooksManager: NSObject {
public class func urlForSharedBooksArray() -> String? {
let directoryURL = NSFileManager.defaultManager()
.containerURLForSecurityApplicationGroupIdentifier("group.example.DataSharing")
let fileURL = directoryURL?.path?.stringByAppendingPathComponent("SharedCSBooks.plist")
return fileURL?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment