@rogers Thanks very much for your post, and my apologies in the delay in responding. You are correct. On page 22, the code indeed says “AnyObject”, and should be “UIBarButtonItem”. I will inform the book author to let them know so that they make the necessary changes in future editions!