Please note, this blog entry is from a previous course. You might want to check out the current one.
Make sure the photo’s title is somewhere on screen whenever you are showing the photo image to the user.
Currently we have put some common code for handling and formatting data from FlickrFetcher into the common-table-view-controller class. Now we need this code also in a generic view controller. Thus we need to move that part into a more generic helper class and change those methods to class methods.
Now we can easily set the title of the window using the class method of our “new” generic helper class.
self.navigationItem.title = [FlickrData titleOfPhoto:self.photo];
The complete code for this task is available at github.