I’ve been following along with the code in book, but I have run into two problems that I have absolutely no idea how to solve.
First, when I was attempting to display the text “You are getting sleepy” over the hypnosis screen, the text appeared in the upper right hand corner. There was nothing I could do to make it budge, including commenting out the relative values and simply hard-coding in logical unit values.
Second, when attempting to make the colors change when the device was shaken, I typed the code
- (void)setCircleColor:(UIColor *)clr
circleColor = clr;
Directly out of the book into XCode 4. I got an error that says "…unidentified identifier ‘circleColor’; did you mean ‘_circleColor’?"
If I accept XCode’s suggestion, the app doesn’t change color when shaken, despite the fact that all of the other code is in place. Has anyone else experienced anything like this?