2011-10-16 93 views
0

我一直在xcode 3.2上开发我的应用程序一段时间了,它工作得很好。工作表问题升级到Xcode 4.2

随着新的IOS 5,我终于决定升级到Xcode 4.2。 所以我打开了我的项目,它编译得很好,但是我遇到了两个问题,我似乎无法修复。

一个是,当我显示一个动作表,它完美的作品,直到你按下其中一个按钮。然后,操作表消失,您的左侧仅显示褪色视图。 我对actionsheet代码

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 libary。它在xcode 3.2上运行良好,但是现在在xcode 4.2上它似乎不具有动画效果,我想知道是否有人知道如何解决此问题?它的框架代码与IOS5不兼容的问题。

谢谢你的时间!

+0

你好,我已经拿到了开流过这个网站的其他问题的工作,但是仍然有操作问题表,有没有人有任何想法? – ApiMail

回答

2

确保您一定的动作片代表在您的视图的顶部controller.h文件

@interface UIViewController : UIViewController <UITextFieldDelegate, UIActionSheetDelegate>