Problem: scrolling a tableview and then select the searchbar (iphone)
Posted
by
Samui
on Stack Overflow
See other posts from Stack Overflow
or by Samui
Published on 2011-02-25T03:25:23Z
Indexed on
2011/02/25
7:25 UTC
Read the original article
Hit count: 100
Hello everyone, I've been stuck with this problem for hours and I can't see the light. Please give me a hand with this:
I have a tableview and a searchbar. The searchbar is situated in the navigationbar. When I do a fast scroll of the tableview, if I select the searchbar while the tableview is still decelerating, a exception raises:
Terminating app due to uncaught exception 'NSRangeException', reason: ' -[NSMutableArray objectAtIndex:]: index 31 beyond bounds for empty array'
How can I stop programmatically the deceleration of the tableview?
Thanks for your time!
© Stack Overflow or respective owner