grillbiff / DragAndDropTableView

A UITableView where cells can be rearranged by drag and drop.
MIT License
55 stars 13 forks source link

Method not found #3

Closed mnievas closed 10 years ago

mnievas commented 10 years ago

Hi,

In the method forwardInvocation, you assume that my class had implemented 'numberOfSectionsInTableView:' which is not mandatory. If the method is not defined, you have to assume 1.

Regards, Marce.

-(void)forwardInvocation:(NSInvocation *)invocation { if (!_proxyObject) { [self doesNotRecognizeSelector: [invocation selector]]; } [invocation invokeWithTarget:_proxyObject]; }

(lldb) po invocation <NSInvocation: 0x16d51f10> return value: {i} 0 target: {@} 0x1eb8e0c0 selector: {:} numberOfSectionsInTableView: argument 2: {@} 0x173a0a00