Hard coded the indexes for the application tabs.

`indexOfObject` was returning invalid values so the tab would never be selected. I'm not sure exactly why though, so maybe someone with more iOS-fu will have a better solution!

Fixes #1767