Add Text Label and Button to dynamic tableview cell programmatically with Swift
问题 I have a dynamic tableview and a prototype cell which displays an array. My questions is how would I add a button which displays different names on each cell to the Left side of the cell and then a label to the right side displaying the array info. Thanks! :D So imagine this is the cell below: Left side:Button(array info) <-------------------> Right side:TextLabel(array info) 回答1: You can implement like this let titleArray = ["a", "b", "c"] func tableView(tableView: UITableView,