I'm currently a little upset with the user delegation process in objective-c. I have used the design template several times and I understand how it works. I searched the Internet for 2 hours, trying to find what I am doing wrong in this case, and do not prevail. I also compared my past use to user delegates that function properly against this instance and cannot see any conceptual differences. so we go:
I create a custom view with two tables (one table for the list, and the other for storing the ones selected from this list.) So that the user can make a basic choice. here is the header file:
Pay attention to the official protocol announcements. Also note that this, along with compiling the .m file, is excellent. When I try to write a class to accept the protocol, I get the error message “Cannot find the protocol declaration for“ ListSelectorDataSoure. ”I get the same message for“ ListSelectorViewDelegate. ”Here is the .h file for the delegate class:
#import <Foundation/Foundation.h> #import"ListSelectorViewController.h" @interface ListSelectorDelegateTemplate : NSObject <ListSelectorDataSource,ListSelectorViewDelegate>{ } @end
Note that I import ListSelectorViewController.h, where protocol declarations are found. Also note that when you enter "", it automatically terminates, which means that it sees it. As I said, I did it exactly for other objects without any problems and I can’t wrap my head around it ... Any help at all will be appreciated
source share