简体   繁体   中英

iPhone development - calling protocol methods (not working)

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM