Used generic UIViewController references

Removed the example specific MainViewController and
SecondViewController types so the code could be more easily used in
other projects.