Table View – Signal SIGABRT

Hi there again,

 

According to my other thread, I have a signal SIGABRT error in my code. The code consists of:

 

  • A Storyboard with 1 TableView and 1 Table Cell included
  • A custom Tablecell class (TableViewCell_Prototyp), which is connected to the Storyboard by (strong) IBoutlets.
  • A View Controller class, which is described in the following.

 

My ViewController class is connected to 3 super-classes: UIViewController, UITableViewDelegate, UITableViewDataSource. In addition, there are 3 functions implemented. Can somebody find the mistake ?

 

 

>    override func viewDidLoad() {

>        super.viewDidLoad()

>    }

 

>> i don’t know what happens here. It was written by default so it should not cause any errors.

 

>    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

>        return 1

>    }

 

>> i just want one table cell to be returned.

 

>    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

>        let cell = tableView.dequeueReusableCell (withIdentifier: “picCell”) as! TableViewCell_Prototyp

>        cell.shoutPic.image = #imageLiteral(resourceName: “XXX.png”)

>        cell.shoutText.text = “Hallooooooooo”

>          return cell

>    }

 

>> shoutPic and shoutText is connected to the TableViewCell_Prototype custom class by outlets.

 

THANK YOU IN ADVANCE !!!

Powered by WPeMatico

About

You may also like...

Comments are closed.