I have a protocol like so :
public protocol SubmitAgeDelegate : class {
func changeSubmitButtonBool()
}
The problem is I want to call it in a
You are never setting the submitAgeDelegate
of the GenericController
. Having a member of the same name in your MyCell
class doesn't help.
You need to get a reference to your GenericController
in order to set its delegate; there's no way around that. (This doesn't have anything to do with generics; it's the same for non-generic classes.) Since it looks like you're using it as a UICollectionViewCell
, you might use the reference that you make in tableView:cellForRowAtIndexPath:
or similar.