开发者

Adding UITableView Delegate to my ViewController Causing an Incomplete Implementation Error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜