我的实现页面上有不完整的实现警告(相同的功能在 right.m 文件中):
左.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
为什么执行不完整?在右侧,我有相同的功能,一切都很好。