Wednesday, April 20, 2011

How to add action sheet to your iPhone app like one I almost used in my World War II Trivia game

In my most recent app, CODENAME: Trivia WW2, I was going to add an actionsheet to give game alerts. I decided against it at the last minute because I didn't want to give up screen real estate. But, this is a handy tool to add to iPhone apps. In Android, you can either use Toast or create a dialog popup theme. See my example below.

UIActionSheet *actionSheet = [[UIActionSheet alloc]initwithTitle:@"my title" destructiveButton:@"main" otherButtonTitles:nil};
[actionSheet showinView:self.view];
[actionSheet release];

Click here to download my World War II Trivia game for iPhone

No comments:

Post a Comment