It's actually not in the middle of my code. I was showing the error message with the relevant lines of code. I should have formatted it better.
Error: syntax error before ']' token:
Code:
UIAccelerometer *accel = [[UIAccelerometer sharedAccelerometer]];
accel.delegate = self;
accel.updateInterval = 1.0f/60.0f;
Error: 'didReceiveMemoryWarning' undeclared (first use in this function)
Code:
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
// Release anything that's not essential, such as cached data
}
Error: syntax error before '{' token:
Code:
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
// Release anything that's not essential, such as cached data
}
I'm starting to think this thread isn't a good tutorial for me right now. The posted code contains typos and being a noob, I'm getting thrown off by it pretty easily.