Thursday, December 24, 2009

UIActionSheet vs UITabBarController

So have you tried to slide up an Action Sheet only to have the Tab Bar Controller below make clicking the bottom link a serious challenge?

Instead of this:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"w00t!" otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];

Try this:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"w00t!" otherButtonTitles:nil];
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[actionSheet showInView:appDelegate.window];
[actionSheet release];

Sunday, December 13, 2009

Brava Angelina

Angelina Jolie recently wrote an op-ed piece about Darfur:

How is the Obama administration's approach to Sudan an evolution of justice? In addition, when the administration says it intends to work to "improve the lives of the people of Darfur," I would like to know what that means, besides the obvious point that their lives could hardly get worse.

[ Click Here for the full article ]