左侧不完整的实施

时间:2012-11-16 17:44:40

标签: objective-c ios xcode

我的实现页面上有不完整的实现警告(相同的函数在right.m文件中):

left.m文件

#import "left.h"
#import "shareL.h"

@interface left ()

@end

@implementation left    // Incomplete implementation

- (IBAction)shareL {

    shareL *screen = [[shareL alloc] initWithNibName:nil bundle :nil];
    screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:screen animated:YES];

}


- (IBAction)backButton {

    [self dismissModalViewControllerAnimated:YES];

}


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

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


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

@end

为什么执行不完整?在右侧我有相同的功能和一切都没关系。

1 个答案:

答案 0 :(得分:2)

通过打开不完整的实施警告,您可以确切地找出您可能缺少哪些方法的实现。下面是一个屏幕截图,说明了问题所在。在我的情况下,我注释掉了一个名为fadeAction的方法

enter image description here