Example project uses wrong delegate method for didChangeToState