It would be useful to see the result in the xcode debugger console window. Usually, when you get a crash, there is additional information available from the debugger console (the command-shift-R or Run> Console command opens in the menu). If an exception occurs that causes the crash, he will say which one. In either case, you can enter bt (for backtracking) immediately after the failure and see the call column on failure.
In your particular case, it is possible that you accidentally released a UIScrollView object, but still indicated where the old selected object was. This will crash the next time any method is called in UIScrollView , and since zoomScale is a receiver accessory, it is considered a method call. The most obvious symptom of this problem will be the EXC_BAD_ACCESS exception in the debugger console when a failure occurs.
Tyler source share