我有一個名爲「圖片」右側「支持文件」內的一堆圖像的文件夾,但是當我嘗試檢索文件時,它返回零,即使我確定裏面有圖像;我嘗試用下面的代碼做內部viewDidLoad() let sourcePath = NSBundle.mainBundle().resourcePath!.stringByAppendingPathComponent("Pictures")
let imgArray = NSFil
隨機音頻文件我不斷收到以下錯誤,當我使用「搖晃手勢」在iPhone模擬器: Fatal error: unexpectedly found nil while unwrapping an Optional value 這裏是我的相關代碼: import UIKit
import AVFoundation
class ViewController: UIViewController {