How to find bug in utility-type application?
I have written a utility type app that works great on simulator but very often crashes on real device (iPad). The crash occurs while coming back to MainView from FlipsideView. Either button doesn't react or it closes app (crash). I have duplicated everything about FlipsideView (controller, 开发者_JAVA技巧xib), changed name to FlipsideHView and modified it to support landscape orientation. This way I got 2 separate views to load depending on the orientation it was started from.
How can I find out what's the problem? Once it happens 10x in a row, other time it's hard to cause this bug.
Like I said, app works on Simulator and I don't have Development Device. Console is clean.
What should I look for?
I know this isn't that helpful but my advice is get a development device.
If it works all the time on the simulator it doesn't matter what solution we suggest, you can't test it to see if it's the problem or not so you can't fix it.
The first step in fixing a bug is to reproduce it. If you can't reproduce it, how do you know you've fixed it?
Sorry this answer's not more helpful!
The problem was memory management.
Found it using "toggle memory warning" on simulator.
精彩评论