我在我的实现页面上有不完整的实现警告(相同的函数在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为什么是不完整的实现?在右边,我有相同的函数,一切都没问题。
发布于 2012-11-17 02:10:13
通过打开不完整的实现警告,您可以准确地找出您可能缺少哪些方法的实现。下面是一个屏幕截图,它说明了问题可能是什么。在我的例子中,我注释掉了一个名为fadeAction的方法

https://stackoverflow.com/questions/13421747
复制相似问题