English 中文(简体)
Drag and drop item from UITableView to UITableView
原标题:

I know there are number of threads available on stackoverflow regarding drag & drop between two UITableView but I am not able to work on it smoothly.

Please do not post links of that stackoverflow as a refrence here in this thread because I have already gone through that.

So....

I have created a main UIViewController under which I have added two UITableView i.e. tableView1, tableView2

Under which I have added customCell and UIView enclosed with images on that cell. Now if i will use touchesMoved delegate its not working at all for me. Instead of I have gesture recognizer like so:

//Custom cell for planned spend details progress bars....
- (void) customCell:(UITableViewCell *)cell {

    UIView *progressView = [[UIView alloc]initWithFrame:CGRectMake(2.0, 2.0, 320.0, 97.0)];
    [self setProgressBars:progressView];
    progressView.userInteractionEnabled=YES;
    [self addGestureRecognizersToView:progressView];

    [cell.contentView addSubview:progressView];
    cell.selectionStyle=UITableViewCellSelectionStyleNone;
    [progressView release];

}

setProgressBars is a method where I have added UIImageView.

Now using UIRotationGestureRecognizer I am able to drag and drop UIImageViews within single UITableView. Its not working at all If I will drag outside the premises of that UITableView.

Please help in order to resolve my problem so that I am able to drag items from one UITableView to another

最佳回答

I have some working code: How to copy cells between tables as the pulse app, but the animation is crap. If interested, we can join forces and release it as open source...

UPDATE: My progress so far: https://bitbucket.org/elmalabarista/dragdroptableviews

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签