I am building an application where by I want to share a mutable NSArray between two different view controllers.
The reason why, is because on one of the viewcontrollers (main) I need to actively check the contents of the array and if certain properties are satisfied show an alert, whilst the other viewcontroller (UI) is the UI for the user to set the an alert object into said array and manage the alert objets in a tableview.
So my question is where can this array reside, in my application delegate potentially?
Or am I best having it reside in the main (root view controller) and basically pass it to the second UI view controller and dynamically populate the UItableview there each time, then pass it back to update the array on the main?