The app that I've built it a journaling app, and users can go back and look at their previous entries from a calendar page (screenshot attached). On iPhone only (Android is fine), after clicking through about 20 days the app crashes. It doesn't send a crash message through email, so I'm pretty sure that it's hitting a memory limit.
In testing, I kept all of my logic the same and only removed the part where I generate the spanlabel to show the journal text. I was still pulling the text from the database, just not creating the label and displaying it. And it stopped the crashing.
So my question is, is there anything I can do to make sure that the text that goes into the label does not get stored in memory, so that the garbage collector can remove it?
I've found the problem is caused when several really small queries run consecutively. After removing those the larger queries run without crashing.