Open conky9876 opened 4 years ago
i am getting a error contentsof do not match any available overloads
import UIKit import AVFoundation class YelloViewController: UIViewController { var musicEffect: AVAudioPlayer = AVAudioPlayer()
@IBOutlet weak var yellowButtonPresed: UIButton! override func viewDidLoad() { super.viewDidLoad() let musicFile = Bundle.main.path(forResource: "See me bleed", ofType: ".mp3") do { try musicEffect = AVAudioPlayer(contentsOf: URL, (fileURLWithPath: musicFile!))// error here/// } catch { print(error) }
anyone ??? i'm new to this site
i am getting a error contentsof do not match any available overloads
import UIKit import AVFoundation class YelloViewController: UIViewController { var musicEffect: AVAudioPlayer = AVAudioPlayer()