Ios Xcode4.3 UIActionSheet导致错误消息
该应用程序在测试时运行良好,但在Ios Xcode4.3 UIActionSheet导致错误消息,ios,xcode,uiactionsheet,Ios,Xcode,Uiactionsheet,该应用程序在测试时运行良好,但在delegate:selfI get旁边 正在将“ViewController*const\u strong”发送到不兼容的参数 键入“id” 在这方面的任何帮助都是非常感谢的,因为我已经在这几天了 我的Viewcontroller.h是 #import <UIKit/UIKit.h> #import <Social/Social.h> #import "Accounts/Accounts.h" #import <MessageUI
delegate:self
I get旁边
正在将“ViewController*const\u strong”发送到不兼容的参数
键入“id#import <UIKit/UIKit.h>
#import <Social/Social.h>
#import "Accounts/Accounts.h"
#import <MessageUI/MessageUI.h>
@interface ViewController : UIViewController<MFMailComposeViewControllerDelegate>
{
UIAlertView *objresponseAlert;
}
@property (weak, nonatomic) IBOutlet UITextView *myTextView;
- (IBAction)emailButton:(id)sender;
@end
这工作完美
// Make Class conform to UIActionSheet delegate
@interface ViewController : UIViewController<MFMailComposeViewControllerDelegate,UIActionSheetDelegate>
//使类符合UIActionSheet委托
@界面ViewController:UIViewController
您需要使您的课程符合UIActionSheet
委托。在头文件中,进行以下更改:@interface ViewController:UIViewController
Brilliant!谢谢我试着在任何地方都输入UIActionSheetdelegate,但没有意识到这就像在逗号后输入一样简单!再次感谢!!!输入错误,应为“UIActionSheetDelegate”。“d”必须是资本。
// Make Class conform to UIActionSheet delegate
@interface ViewController : UIViewController<MFMailComposeViewControllerDelegate,UIActionSheetDelegate>