Hi there … this is my first time here and i’m having an issue that i’m facing and i hope i can find some help … please look at the highlighted lines and explain it a bit to me … Thanks
Hi @amirfendi
You need to set a reuse identifier in the storyboard that will be used later in your code (as a dequeReusableCellWithIdentifier function parameter)
Note that in your case identifier should be PlayerCell.
Nikita
Sorry i’m new to swift … how to do that ?
That tutorial was written before Swift 3 release, so some functions syntax has changed since then.
You need to change that line to:
tableView.dequeueReusableCell(withIdentifier: "PlayerCell", for: indexPath)
Nikita
ok great … now the override func line ? the let cell was fixed … now the func tableView still have error …
on building and running it says:
method does not override any method from its superclass
Replace it with
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
Nikita
Thanks a million … Now everything works as suppose to …
now one question if you don’t mind …
don’t you think that these papers and documents needs updating and review ? i mean like you said it’s outdated and it wont work with the new ver or swift …!
Glad it was helpful. And this tutorial will be updated at some point.
I am closing this thread now, if you have other questions please open a new thread.
Nikita