bvogelzang / BVReorderTableView

Easy Long Press Reordering for UITableView
MIT License
234 stars 59 forks source link

Adding respondsToSelector Method #10

Closed mansimov closed 11 years ago

mansimov commented 11 years ago

Just making code cleaner by checking if delegate responds to delegate functions (respondsToSelector) before calling them

bvogelzang commented 11 years ago

Because these methods are required to accomplish re-ordering the respondsToSelector methods aren't needed and shouldn't be checked so an error is thrown and the developer knows that they're missing something. A better option would be to add else statements along with the respondsToSelector check and NSLog that the method still needs to be implemented. Could you add these and send another pull request? Thanks!

mansimov commented 11 years ago

Yep I will do that