xcodeで音楽を再生するアプリを作ってたんですが
エラーメッセージ
return cell!にThread1:EXC_BAD_INSTRUCTION(code=EXC_1386_INVOP,subcode=0×0)
が出ています。
###該当のソースコードC#
import UIKit
class ViewController: UIViewController, UITableViewDataSource {
@IBOutlet var table:UITableView! override func viewDidLoad() { super.viewDidLoad() table.dataSource = self // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 10 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") cell?.textLabel?.text = "テスト" return cell! }
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。