last day (15 days later) » 

3:36 PM
hey
 
@FangmingNing
 
Can you put a break point at the line to set text and make sure that the line is hit?
 
yes, line is hit.
but one doubt, i have to return that cell?
 
Are you using static or prototype cells?
 
prototype
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell_3", for: indexPath)
let cellEcts = tableView.dequeueReusableCell(withIdentifier: "Cell_3") as! myCell
i have this two cells, but i return the first one, and second one is the one i can't change.
maybe because of not returning it?
ok, if i returned correct cell works, that means i can't have two cells right ?
 
3:41 PM
uhhh what do you mean two cells?
The cellForRow method supposed to be called for each and every cell
You can have if else or switch in that delegate method to determine which protorype cell you want to return for the current indexPath
Do you want an example code?
9
A: UITableview with more than One Custom Cells with Swift

Fangming NingSwift 3.0 update with minimum code Basic concept: Create a table view with dynamic cell prototypes. Assign identifier and create custom table view cell class for each cell prototype. Initiate and show custom cells in table view's delegate method. 1. Create cells on storyboard Drag a tableView ...

 
ah yes, my mistake, i was working with two cells, and they were the same, i delete one cell, now it's working!!
 
Ok good to hear that :) You have any other questions?
 
No thanks for quick answers and help! Keep good work.
 
Sure. Happy coding :)
 
you too
best regards.
 

last day (15 days later) »