I first announced the protocol, and then used it. But I get the warning "I can not find the protocol definition for LeveyPopListViewDelegate." Here is the code:
@protocol LeveyPopListViewDelegate; @interface LeveyPopListView : UIView <LeveyPopListViewDelegate,UITableViewDataSource, UITableViewDelegate,UITextFieldDelegate> //the content of LeveyPopListView @end @protocol LeveyPopListViewDelegate <NSObject> //the definition for LeveyPopListViewDelegate @end
if you first put the definition of LeveyPopListViewDelegate , I cannot use LeveyPopListView in the protocol.
Bohan gao
source share