Reputation: 3999
Classes: Main, Modal, and Table
I declare a protocol in the main class and call that method from both the modal class and table class. Only the modal class is able to call the method. The table class just ignores method call (which is written identically to the modal class - it doesn't call it and doesn't give an error).
What could be the problem?
TL;DR: Is there anything that would limit a class from calling protocol methods?
Upvotes: 0
Views: 376
Reputation: 1195
check if you set the delegate right, and the different between your Modal and table. I don't think there is anything different which may influent the use of protocol between Modal and Table.
Upvotes: 1