Hello,
first of all, sorry if that question is dumb but I´m a total newbie in ObjC. In my iPhone Application, I have an CLLocationManager implementation in my one and only ViewController because I have only one View. No I want more Views in my Application and every View needs the Position Information from the CLLocationmanager.
So, I think I have to move the implementation from the ViewController into my AppController, because I don´t want to implement CLLocationManager in every ViewController, correct?
But now, I really don´t know how the ViewCotrollers will get the Position Information? I thought of implementing a Singleton Class where I store the information and every VieController can get the Information from there. But for that I have to implement a timer or something like that in the ViewControllers so that they will check every second if new Data is available. That sound not really good and crappy.
How can the ViewControllers automatically get the new Position information? Maybe I need something like an observer but mayby there is something ready in Cocoa/ObjC? I think I´m on the wrong direction with my application.
Thank you so much for any help
twickl