开发者

Adding UITableView Delegate to my ViewController Causing an Incomplete Implementation Error

开发者 https://www.devze.com 2023-03-11 08:07 出处:网络
Adding UITableView Delegate to my ViewController Causing an Incomplete Implementation Error #import <UIKit/UIKit.h>

Adding UITableView Delegate to my ViewController Causing an Incomplete Implementation Error

#import <UIKit/UIKit.h>


@interface MyClassViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {

    UITableView*  _tableView;

}
- (id)initWithFrame:(CGRect)frame;

@property(nonatomic, retain)UITableView* tableView开发者_开发百科;

@end

and in my .m file

@implementation PopUpPlaylistViewController
@synthesize tableView = _tableView;


Use

@interface MyClassViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource>


You are saying you implement these protocols, and they have required methods. see the documentation for both of them to see what methods are required and which are optional.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号