Create Custom Cell Using XIB With Protocol(Call back method) in swift
I will show you how to customize table view cells by using static xib and by subclassing UITableViewCell in Swift.
Create a Empty project and next create a subclass with xib named by CustomTableCell.
In next three screen follow the code(don't forgot delegate 'CustomTableCellDelegate') and design the xib.
Also create a uibutton action
In your viewcontroller implement cell delegate and tableview datasource and delegate also
and follow the screens
if you create a cell without Register cell close 'option 1' and open 'option 2' codes
And in viewcontroller xib
every thing is done now just run your project





















