return (io == UIInterfaceOrientationPortrait);


#1

On page 243 we implement -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation in the ItemsViewController and ItemDetailViewController

the last line in the else block says : return (io == UIInterfaceOrientationPortrait); generates a compiler error because io is an undefined variable

I don’t see anywhere in the book where we create an io variable. Am I missing something here? Is io a constant of some kind?

I searched the forums and didn’t see anyone with the same problem. Please help!

Thanks


#2

Nevermind I figured it out. I didn’t notice they renamed the argument variable io instead of toInterfaceOrientation - it slipped by me due to the code completion. Man I feel like such a n00b.