-(void)tapShopRegist
{
UIActionSheet *as = [[UIActionSheet alloc] init];
as.delegate = self;
as.title = @"タイトル";
[as addButtonWithTitle:@"選択肢1"];
[as addButtonWithTitle:@"選択肢2"];
[as addButtonWithTitle:@"キャンセル"];
as.cancelButtonIndex = 2;
as.destructiveButtonIndex = 0;
[as showInView:self.view];
[as release];
}
-(void)actionSheet:(UIActionSheet*)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
switch (buttonIndex) {
case 0 : {
UIViewController *controller = [[[RecentArticleListController alloc] init] autorelease];
[self.navigationController pushViewController:controller animated:YES];
break;
}
case 1 : {
UIViewController *controller = [[[SearchShopController alloc] init] autorelease];
[self.navigationController pushViewController:controller animated:YES];
break;
}
}
}

この記事を書いた人

kubou

kubou

2049, inc.
web業界で生活しています。
お仕事の割合はディレクション:8、開発:2くらい。