2012-11-16 35 views
1

我有未完全执行警告我实现页面上(同样的功能是在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 

为何未完全执行?在右侧,我有相同的功能和一切都OK。

+1

方法你应该分享'left.h',看看你声明有什么方法。另外,如果你展开编译错误,它会告诉你它正在执行的方法的名字,但从来没有找到。 – Rob

+0

正如@Rob上面所说,没有标题,很难知道你错过了什么。另外 - 这与你缺少的方法实现无关 - 你的Objective-C类名“left”是非常规的。请参阅Apple类[命名标准](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html#//apple_ref/doc/uid/20001281-1002242-BBCIJGDB )按照惯例,类名是名词,并以一个唯一的大写前缀开始。 – FluffulousChimp

回答

2

通过打开不完整的实现警告,您可以确切地找到您可能会丢失实现的方法(s)。下面是一个屏幕截图,说明问题可能是什么。在我的情况下,我注释掉了一个名为fadeAction

enter image description here