Iphone 关于升级到Xcode 4.2的操作说明问题

Iphone 关于升级到Xcode 4.2的操作说明问题,iphone,xcode,uiactionsheet,Iphone,Xcode,Uiactionsheet,我在xcode 3.2上开发应用程序已经有一段时间了,它工作得很好 有了新的iOS5,我最终决定升级到Xcode 4.2。 所以我打开了我的项目,它编译得很好,但是我遇到了两个似乎无法解决的问题 一个是,当我显示一个动作表时,它可以完美地工作,直到你按下其中一个按钮。然后行动表消失了,你的左边只有一个褪色的视图。 我的行动清单代码是 UIActionSheet *ActionSheet = [[UIActionSheet alloc]initWithTitle:@"Actionsheet" d

我在xcode 3.2上开发应用程序已经有一段时间了,它工作得很好

有了新的iOS5,我最终决定升级到Xcode 4.2。 所以我打开了我的项目,它编译得很好,但是我遇到了两个似乎无法解决的问题

一个是,当我显示一个动作表时,它可以完美地工作,直到你按下其中一个按钮。然后行动表消失了,你的左边只有一个褪色的视图。 我的行动清单代码是

UIActionSheet *ActionSheet = [[UIActionSheet alloc]initWithTitle:@"Actionsheet" 
delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil      
otherButtonTitles:@"Actionsheet","Action", nil];
[ActionSheet showInView:self.view];
    [ActionSheet release];






-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex 
{

NSString *ActionSheet = [actionSheet buttonTitleAtIndex:buttonIndex];
if ([ActionSheet isEqualToString:@"Cancel"]) {
    NSLog(@"Nothing");
}
else {
   NSString *ActionSheetResult=ActionSheet;
   }
   }
这在xcode 3.2中非常有效,只是在xcode 4.2中没有

我的另一个问题是openflow,开源coverflow库。它在xcode 3.2上运行得很好,但现在在xcode 4.2上它似乎没有动画效果,我想知道是否有人知道解决这个问题的方法?这是框架代码与IOS5不兼容的问题


谢谢你的时间

确保在视图
controller.h
文件的顶部有操作表委托

@interface UIViewController : UIViewController <UITextFieldDelegate, UIActionSheetDelegate>
@接口UIViewController:UIViewController

您好,我在这个网站上找到了另一个问题的开放流程,但是行动表仍然有问题,有人有什么想法吗?