I have 4 Xcode projects ( GPS, Accelerometer, Compass and MySQL).
Each of them individually are compiling fine and are working fine.
I will like to combine all of them into one project so I can send the GPS, Accelerometer and Compass info to a mySQL database.
I have tried to copy the .h
and the .m
and the frameworks required from project to another.
Mainly the problem arises here :
- (IBAction)insert:(id)sender
{
// create string contains url address for php file, the file name is phpFile.php, it receives parameter :name
//NSString *strURL = [NSString stringWithFormat:@"http://localhost/phpFile.php?name=%@",txtName.text];
NSString *strURL = [NSString stringWithFormat:@"http://localhost/phpFile.php?name=%@",speedLabel.text]; ************< use of undefined identifier 'speedLabel'****
// to execute php code
NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]];
// to receive the returend value
NSString *strResult = [[[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding]autorelease];
NSLog(@"%@", strResult);
}
Here is the structure which speedLabel is contained :
@interface CoreLocationDemoViewController : UIViewController <CoreLocationControllerDelegate> {
CoreLocationController *CLController;
IBOutlet UILabel *speedLabel;
IBOutlet UILabel *latitudeLabel;
IBOutlet UILabel *longitudeLabel;
IBOutlet UILabel *altitudeLabel;
IBOutlet UILabel *timeLabel;
}
Thanks for your help