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