小编use*_*808的帖子

语义问题 - 不完整的实现Xcode

我在线搜索并通过我的代码,我无法弄清楚我的问题在哪里.如果有人可以帮助我,我会非常感激.

SecondViewController.h

#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>

@interface SecondViewController : UIViewController <MFMailComposeViewControllerDelegate>
{}

-(IBAction)twitter:(id)sender;
-(IBAction)facebook:(id)sender;
-(IBAction)Contact:(id)sender;

@end
Run Code Online (Sandbox Code Playgroud)

SecondViewController.m

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController



- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


-(IBAction)Contact {
    MFMailComposeViewController *mailcontroller = [[MFMailComposeViewController alloc] init];
    [mailcontroller setMailComposeDelegate:self];
    NSString *email =@"Warce@actionsportsinc.com";
    NSArray *emailArray = [[NSArray alloc] initWithObjects:email, nil];
    [mailcontroller …
Run Code Online (Sandbox Code Playgroud)

iphone macos xcode ios6

3
推荐指数
1
解决办法
6102
查看次数

标签 统计

ios6 ×1

iphone ×1

macos ×1

xcode ×1