テスト時にはアプリは完全に正常に動作しますが、次delegate:self
は...
'ViewController *const __strong' を互換性のない型 'id< UIActionSheetDelegate>' のパラメーターに送信しています
何日もこれに携わってきたので、これに関する助けは大歓迎です!
私のViewcontroller.hは...
#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
そして、私のViewController.mには....
- (IBAction)emailButton:(id)sender {
UIActionSheet *actionsheet = [[UIActionSheet alloc]
initWithTitle:@"Title"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Email", nil];
[actionsheet showInView:self.view];
}