In iOS development, implementing custom cell in storyboard is much easier than implementing it in nib files.
First, create your own custom cell class, which is called CustomCell and must inherit from UITableViewCell. Define the required controls in this class.
Then, open the storyboard and select the UIViewController that you want to add the custom cell. We call it ViewController. Add a cell in UITableView (or modify the original cell ). Change the cell style to custom, the cell class to CustomCell, And the identifier to CustomCellIdentifier. Then, you can add a control in the cell to connect the control with the control just defined in CustomCell.
Finally, add the following code to the tableView: cellForRowAtIndexPath: proxy method of the UITableView of ViewController:
[Plain]
CustomCell * cell = [tableView dequeueReusableCellWithIdentifier: @ "CustomCellIdentifier"];
In this way, a cell is created, and you can set the control you have added after this code.
From soloterry's column