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

[WEEX-98][iOS]bug-fix addEvent lead to generate a new view while it as been recycled #837

Merged
merged 1 commit into from Nov 9, 2017
Commits on Nov 7, 2017
  1. [WEEX-98][iOS]bug-fix addEvent lead to generate a new view while it h…

    acton393 committed Nov 7, 2017
    …as been recycled
    
      In most case , element in cell will be re-use for memory especially in very
    long list, but if add event for this element, here will generate a new view for
    this element,if it's nil due to a  getter method whether it is off-screen.
    
      For instance, image element in cell will re-use if it is disappear in vision area,
    loaded again while it back to visual area. In this case , when it disappear, just
    add event such as click, touch and so on , it will then create a new view,
    and load image again, although it is off-screen.
    
      If the view is not loaded, so won't add gesture or call this view getter to create
    any view until the view is loaded, then it will init events according to record in
    component.
    
    Bug: 98