Quick one. I’m overlooking something…
I have a grouped table view that is built from arrays in an NSDictionary. Each array is a section of the table. When in editing mode and a user clicks "delete" I call
- (void)removeObject:(MyClass *)myObject
how can i determine which array to send the message [myArray removeObject:myObject]? NSDictionary doesn’t have an indexOfObject: method but NSArray does. I suppose I could iterate through each array looking for said object but that doesn’t seem right.
You could implement the standard UITableView protocols and use this method:
I think that’s the way to do it, not sure though. Can anyone clarify?