Delegation not working Swift
问题 I'm trying to implement the delegation pattern on Swift. The process consists in a popover that is displayed from a UIMenuItem in a text selection on a textView. This popover is a TableViewController that contains some colors. When a cell (or color) is tapped, the selected text changes its color from black to the selected color. I have the following protocol in the sending class: protocol SelectedColorDelegate { func didSelectColorCell(color: UIColor) } Then in the sending class I created