実装ページに不完全な実装の警告があります (同じ関数が 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
なぜ不完全な実装ですか?右側には同じ機能があり、すべて問題ありません。