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
// Steps to mark ODR resources | |
// Select file(image, audio, etc) - File inspector - On Demand Resource Tags - Give it a name | |
class ODR_ViewController: UIViewController { | |
var tubbyRequest : NSBundleResourceRequest? | |
@IBOutlet weak var resourceDownloadProgress: UIProgressView! //to show download progress | |
// fileName is the name of the file's ODR tag | |
// if you want to download more than 1 file, change String to [String] | |
func fetchODRResourceWithName(fileName: String) {//to be called when the file needs to be accessed |