Steve,
I'll look into your first question about empty table. Should be easy to
address.

On another thought... I wish it were easier to specify a table DataSource
but looks like you have to declare protocol and implement more delegates.
So many cooler things could be done generically if that were the case
rather than hard coding the array with each table. Perhaps some sort of
metadata data structure in the helper could simplify it? Just thinking out
loud.
Craig



On Thu, Mar 13, 2014 at 6:10 AM, Steve Fortune <notifications@github.com>wrote:

> In Classes/I3DragBetweenHelper.m:
>
> > @@ -264,6 +264,31 @@ -(NSIndexPath*) determineIndexForContainer:(UIView*) container
> >  }
> >
> >
> > +-(NSIndexPath*) lastIndexPathForView:(UIView*) container{
> > +
> > +    NSIndexPath *indexPath;
> > +
> > +    if([container isKindOfClass:[UITableView class]]){
> > +
> > +        UITableView *theView = (UITableView*)container;
> > +
> > +        // Now just construct the index path
> > +        indexPath = [NSIndexPath indexPathForRow:([theView numberOfRowsInSection:([theView numberOfSections]-1)]-1)
> > +                                       inSection:([theView numberOfSections]-1)];
> > +
>
> We could probably do with some additional test cases in the test app to
> cover scenarios like empty tables. Will put some together when I
> review/merge.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/ice3-software/i3-dragndrop/pull/18/files#r10563204>
> .
>



-- 
Lacrosse Stats Collection for the iPad - Get it on the App
Store<http://itunes.apple.com/us/app/x-static-apps-lacrosse-stats/id516229459?ls=1&mt=8>