Moving from one tab to another programmatically

This is a question that always seems to crop up.

self.tabBarController.selectedIndex = 6;

"6" in this case refers to the order of the tab, starting from 0 for left most.

Another useful operation is the return the present tab back to its root controller

[self.navigationController popToRootViewControllerAnimated:NO];

What do you think? Let me know by getting in touch on Twitter - @wibosco