Member Since: Feb 25, 2009
Mac Specs: 2012 Non-retina MBP, 2.6GHz i7, 8GB RAM, Antiglare Screen
12-07-2011, 11:07 PM
If it's in the app delegate, it's easy to get it in the view controller - just get a handle to the app delegate and then request the ivar (assuming you have a property for your data ivar set up in the app delegate) - which means you'd move ImageStrings *theDataObject to be an IVar and setup a property for it
you would get it from something similar to...
YourAppDelegateName *appDelegate = (YourAppDelegateName *)[[UIApplication sharedApplication] delegate];
then you would get the data..
self.localRetainOfData = appDelegate.theDataObject;
then you would just access the data from the local ivar of the class.
Keep in mind, passing data between view controllers (direct passing, not accessing through the app delegate) requires use of the segue methods where you can set data values in the destination view controllers (this is going from view A to view B, not from app launch to view a)
My Macs: 2012 Non-Retina 15" MBP; Mac mini G4, 1.25 GHz, 512m ram (server); Late 2011 11" MBA, 1.8GHz i7, 4Gig Ram, 256Gig SSD, HD3000; Powerbook 12" G4 1.33GHz running Debian as a server; Apple TV (1080p version)