Add a back button

Now that we have two views nicely done, we want to be able to navigate back to the main view. We do this with a back view in navigation bar in the top.

Open up RootViewController.m and look for the viewDidLoad function. You want to add the following line to it.

self.title = @"Photoblog";

Then when you click on browse, it will show Photoblog in the back navigation.

About mike
Currently works for OpenSky as a Senior Linux Admin. He has a wonderful wife Thanuja and 2 great dogs. His major side project is Photoblog.

Comments

One Response to “Add a back button”
  1. jeffaudio says:

    You can also add the title in Interface Builder and it will add the back button.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!