★ NSBundleを取得する
let bundle = NSBundle.mainBundle()
★ info.plistからkeyを指定して値を取得する
let value: String = NSBundle.mainBundle().objectForInfoDictionaryKey("key") as! String
★ アプリバージョンを取得する
let version: String = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String
★ ビルドバージョンを取得する
let build: String = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleVersion") as! String
★ Bundle Identifierを取得する
let bundleID = NSBundle.mainBundle().bundleIdentifier
★ ファイル名と形式を指定してPathを取得する
let path = NSBundle.mainBundle().pathForResource("sample", ofType: "txt")
★ Bundleのcsvファイルを読み込んでNSDataに変換する
let csvFile = NSBundle.mainBundle().pathForResource("data", ofType: "csv")
let csvData = NSData(contentsOfFile: csvFile!)