How can I make my tableview enter editing mode?

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-05-25T07:26:04Z Indexed on 2010/05/25 7:31 UTC
Read the original article Hit count: 257

Hi, for some reason I can't get my tableview to enter editing mode. It's a little harder than it might seem because I'm using some open source code to make a calendar (iCal esque) with a tableview under it, and it's not quite as straightforward as just using a regular tableview.

Basically, I have two classes. One (let's say Class A) is a UIViewController and the other (Class B) is that viewController's datasource and tableview delegate. In Class B, I've implemented

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

which works fine, but if I put an edit nav bar item in Class A (the view controller), nothing happens. Am I forgetting certain protocols, or certain special methods that I need to write? Thanks for any help, and apologies if I'm missing something, I'm just learning to work with other people's code.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c