Tech Thought

Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX

Entries for December 31st, 2008

How-To: Jump between tabs using UITabBarController

Sometimes you want to jump between tabs in your iPhone app programatically (ie you don’t want the user to have to touch the tab prior to displaying it). This is very easy to achieve: self.tabBarController.selectedIndex = 3; Where selectedIndex reflects the tab you wish to select (from left to right, starting at 0 for the [...]

Comments (5)

How-To: Change text on Back Button in UINavigationBar (UINavigationController)

If you’re using a UINavigationController to control the navigation in your iPhone app, you’ll find that the “Back” button on your navigation stack can sometimes get very long – particularly if you have long titles for the views you push on to your UINavigationController stack. That’s where changing the text on the ‘Back’ button can [...]

Comments (4)