views:

24

answers:

0

Hello

Longtime C# developer, newbie objective c and iPhone/iPad developer.

Basically I am writing an app which displays search results on a map and there is a button on a uitoolbar that displays a popover of the results on the map to scroll through. It's all working except if I make a second search and the data changes this change is not being reflected in the popup. I have tried calling [self.tableView reloadData] in viewWillAppear on the popover controller but this causes an exception to be thrown which is just exc_bad_access and I can't get any details (which on a side note is another question, is there a way to get more detail than just exc_bad_access?)

The search results I wanted available across multiple view controllers so I store it in a nsmutablearray which can be acceded via a singleton pattern, although I am thinking of changing this to core data and accessing it from there.

My question is what is the best way to handle this situation? In regards to sharing data, reloading data and getting more details from error. I think this is a memory problem but not sure, hours of googling hasn't revealed much that is helpful.

Thank you in advance for any advice, I think I need to break my .net mindset to work with iPhone/iPad.