-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect behavior in iOS 8.1 #6
Comments
So I looked into this quite a bit, and figured out that it was due to the UILabel's being changed in the middle of the delegate calls. For some reason in iOS 8, Apple modified behaviour of UILabel such that when you change the text of a label, the constraints for it's superview are updated. Likely due to content hugging, size changes, etc. Since we are dragging the UIView around without updating the constraints, as soon as the constraint system kicks in and updates, the view that is being dragged reverts back to it's original position. |
@ryanmeisters @slangley did you all ever make any progress on this behavior in iOS 8.1+? Thanks! |
The behaviour works in 8.1 as long as you don't do something mid drag that forces a constraint update. The sample updates the label in the middle of the drag that forces a re layout, causing the view being dragged to have its frame reset. I have used this category successfully in an app which is fully auto layout based by ensuring I am avoiding the above caveat. App is here and is drag heavy:
|
It looks like this category is behaving incorrectly under iOS 8.1. This can be seen in the example project.
Incorrect behavior:
Correct behavior:
I will see if I can get some time to look more closely at this.
The text was updated successfully, but these errors were encountered: