Archive for the ‘iPhone’ Category

Selecting an UITabBarItem in the “More…” section

Friday, December 19th, 2008 Share on Twitter

I needed to select an UITabBarItem located in the "More..." section, and I came to this solution: To select a viewController  of the tabBarController, I do the following (each tabBarItem has a tag) : - (IBAction) showAnotherTab:(id)sender { int tag = [sender tag]; NSArray *viewControllers = [self.tabBarController viewControllers]; for (int ...

Add an UIProgressView or UIActivityIndicatorView to your UIAlertView

Sunday, November 9th, 2008 Share on Twitter

This snippet shows how to add an UIProgressView to an UIAlertView. You can choose to display an UIProgressView or an UIActivityIndicatorView in the alert. This may break with a new version of the SDK (2.1 for now), but this was accepted by Apple (or they didnt see it) - (void) createProgressionAlertWithMessage:(NSString *)message withActivity:(BOOL)activity { ...

Finally

Friday, November 7th, 2008 Share on Twitter

After 14713 lines of code, here is my first iPhone application: iVault, available in the AppStore.