animation - UITableView display distorted before setAnimationTransition during view swap -
Greetings! I am trying to borrow visual flip concept from Apple's The Elements sample app. This sample employs a container UIView in which you can see between two sub-views Can swap. The flip is achieved by setting the setAnimationTransition: forView: cache:
and each subview. Generally, flip works and I have two scenes (with a UITableView header / footers, and a MKMapView ). However, different (consecutively selected) areas of my table view have been erased (using the background color of the table view), and why not before I have flipped the table view and Understands
I can not find anything unusual about the table view in the context of drawing. In the case of sample app, the scene has been drawn from scratch, but I hope it will not work for it! I'm really hoping that this is something simple - maybe a UITableView property setting?
Thank you for the appreciation of the clue!
Update: When I slow down the animation, I get the information to get upset (though I still do not know why). My table title view includes an image view and label view. Now, imagine CGRact for both of those ideas (without any visible content, just a background color) table view Further down, above the table rows
This is another part of the real estate which comes from the table view cell, a custom height (the text in it) To the size of Was determined.
I dropped my code (where the size of the things, what is manufactured and what is) is an inefficient number of breakpoints, and one is not killed during their transition.
I also tried to keep my table inside of a UIView and there was no difference in the targeting for the infection.
From API docs:
Caching can improve performance but if you set this parameter to Yes, you will see the sequence or its subviews Should not be updated. Updating the scene and its sub-scenes may interfere with the caching behavior and during the animation the scene content can be sung incorrectly (or in the wrong location). To update this view you will have to wait until the transition ends.
All this is well and good, but I am not updating any thoughts or subviews during the transition. (At least not on purpose! Again, see note about breakpoint. Nothing found.)
Amazing.
Answer: In this case, it only happens ... Simulator ! On the device, it's okay.
I was thinking that such a mill transition would be of a kind that would equally present on the simulator and the device.
I was wrong. So if you ever see the transition error on the simulator, then hang it there. It can be fine after all.
Comments
Post a Comment