I'm sorry if my question title seems fundamentally uninformed. Let me explain what I am trying to do.
I have defined the following UIViewController subclass, which fires up LocationManager, and has a Start Recording button to save a GPS track.
Now I would like to also fire up the accelerometer and allow the user to record that as well.
My ViewController subclass is the LocationManager delegate, so what should I use for the Accelerometer delegate? Can I use the same View, or do I need to define a subview?
Here is the interface for my UIViewController subclass:
@interface RootViewController : UIViewController <CLLocationManagerDelegate> {
NSMutableArray *eventsArray;
NSManagedObjectContext *managedObjectContext;
CLLocationManager *locationManager;
BOOL recording;
UILabel *pointLabel;
UIButton *startStop;
}
-(void)toggleButton;
I can post more of the code if needed, but I think this is all that applies. Thanks for your help, I'm just getting into iPhone development, and my expertise, if I have any, lies in pointer-less programming languages :)