Git Product home page Git Product logo

Comments (29)

SteveFortune avatar SteveFortune commented on June 30, 2024

Hi!

I think this is documented somewhere... I had this exact same issue and remember passing on a fix to someone. Let me see if I can dig it out.

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

Okay thanks you because Im going crazy with this...

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

@snakelecaps, are you using a custom UI[ TableView | CollectionView ]Cell ?

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

@SteveFortune Yes

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

@snakelecaps are you able to share the code for your custom cell class ? I know there are some issues with custom cells (see #8).

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

I can not share with you the entire classe (Code & Etics) but perhaps a small part of if.
Im currently not on my mac computer so i will share later.
I will read your link , thanks.

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Ok, speak soon !

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

hi,

UICollectionView *productsCollectionView;
UITableView *tableview;

i

Im going to check your link right now
Thanks

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

Im trying using Nscoder instead of NSKeyedArchiver but i dont know where to put i? in my controller.m or I3DragBetweenHelper.m ?

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Check out the new code snippet provided an as example in the Example directory (on the dev branch).

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

i read it, nice example thanks you.
But i dont know how and where implement this class?
Do i have to modify your I3DragBetweenHelper Class ?
Do i have to put in my class where i create tableView?

Thanks

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

And like i said, this is not working ONLY when i double tap on my item and try to drag...
Simple drag works... :-)

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Are you using the latest version of the library on master?

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

yep, but i did like i said to you in the first place, i catched some gesture...
The thing with Nscoder was so troublesome and i dont have much time.
ps: and i m a beginner on IOS :-)

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

I will see if I can recreate the issue. Are you running the app on a Simulator or actual device? What version of iOS is the device ?

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

Im running in iphone 5 IOS 7.1
Please how to disabled the selection (grey background) of a items (TableView)

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

This might help

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

I see, maybe i can add the line before
cellCopy = [self copyOfView:cell]; Line 323 and 329?

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

You should not need to modify the helper class, you could trying 'turning off' highlighting for each cell in your controller's tableView:cellForRowAtIndexPath:

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

Nicem its working - thanks you

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Great. Closing this issue now.

from between-kit.

jamesince avatar jamesince commented on June 30, 2024

Hi Steve,

I am having the same crash issue " [NSKeyedUnarchiver decodeBoolForKey:]: value for key (UIHighlighted) is not a boolean' ".... when taping once then tap again to drag. But I am using UICollectionView in my case. I try the above solution to set in 'cellForItemAtIndexPath' : setHighLighted:NO or setSelected:NO, nothing could stop from crashing. In my Custom Cell, I have only a UIImageView. The only thing I can do is to set cell 'setUserInteractionEnabled:NO'. By doing this I still can drag n drop but I need to perform an action when user taps. Could you help please?

Many thank in advance! Your helpers in great.
James.

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Hi !

I'll reopen this and have another look. I know it was definately an issue in one of my apps.

It might be a case of finding an alternative to the NSKeyed[ Archiver | Unarchiver ].

Thanks!

from between-kit.

igorms-pro avatar igorms-pro commented on June 30, 2024

I'd try Nscoder but....

from between-kit.

jamesince avatar jamesince commented on June 30, 2024

Many thanks Steve for opening again this issue.

Additional details, the issue happens in both src and dest UICollectionView when taping once and tap again to drag.

I am a beginner in iOS, If this could help other people who are facing the same problem, my temporary workarround for my case is to create a UIButton to cover the Cell. I set the Button background to clear color. When the button is tapped, I trigger a method to perform what I want. So the Cell heighlignting or selecting will never get called (so no crash).

I know this goes against the purpose of delegate method 'collectionView:didSelectItemAtIndexPath:' until we have a fix.

Regards,
James.

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Just ad update - I've scheduled some maintenance time this coming Sunday to work on this issue. Sorry its been so long, haven't had much time to work on this lately.

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

See comments on #29 for progress

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

See most recent comment on #29

from between-kit.

SteveFortune avatar SteveFortune commented on June 30, 2024

Fixed for v2.

from between-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.