Closed YuriSarkisyan closed 12 years ago
thank you! now it works ;p
One small addition, after assigning a value to a variable view inside the loop, you need to add break; Otherwise not properly defined view in landscape orientation.
done :)
You should remove the break; command, cause make it crash, but thanks for the upper solution!
I'm found a possible bug in realization of CLCascadeView. It reproduced in iOS 4.3 and 5.1 only in release compilation.
If user select table view cell (CLExampleTableViewController) then, by default, a new controller will created and inserted in stack. But, when user select cell in this table again (the same or other no difference), app will crash.
I'm use instruments and zombie profiler and see what CLCascadeView _pages instance is released in method hitTest:withEvent:. I think the reason is wrong return from _pages enumeration. Solution is to not return from inside of while cycle, but outside.
This is my version of this method: