Iphone 无法使用自定义uiviewController生成项目

Iphone 无法使用自定义uiviewController生成项目,iphone,objective-c,ios,xcode4,uiviewcontroller,Iphone,Objective C,Ios,Xcode4,Uiviewcontroller,嘿,当我试图在目标C中构建一个项目时,我遇到了一个错误 "_OBJC_CLASS_$_TimeLineCreater", referenced from: objc-class-ref in TimeLineViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invoca

嘿,当我试图在目标C中构建一个项目时,我遇到了一个错误

  "_OBJC_CLASS_$_TimeLineCreater", referenced from:
  objc-class-ref in TimeLineViewController.o
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
以下是发生错误的.m文件:

#import "TimeLineViewController.h"


@implementation TimeLineViewController
@synthesize myPopover;
@synthesize appDelegate;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
    // Custom initialization
}
return self;
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle


// Implement viewDidLoad to do additional setup after loading the view, typically from a   nib.
- (void)viewDidLoad
{
[super viewDidLoad];

//THIS IS WHERE THE ERROR OCCURS, WHEN I TRY TO ADD THIS UIVIEWCONTROLLER
TimeLineCreater *timeline = [[TimeLineCreater alloc]init];
[self.view addSubview:timeline.view];
}
我真的不知道怎么解决它。我尝试了其他问题的一些建议,但没有成功。有什么想法吗

此处的其他帮助是TimeLineCreater.h和.m文件

h


您在TimeLineViewController类中拼错了TimeLineCreator类的名称,因此您可以更正错误。

我以前创建了另一个名为TimeLineCreater的类,并已删除该类。我想我只是删除了对它的引用,因为它仍然在文件中。谢谢你的帮助
#import <UIKit/UIKit.h>
#import "AppDelegate.h"

@interface TimeLineCreator : UIViewController{

AppDelegate * _appDelegate;
NSMutableArray *teamMembers;
NSMutableArray *projects;
NSMutableArray *tasks;

//Parameter ints (ints that are passed in)
int timeLineType;
int horizontalLineWidth;
int horizontalLineHeight;
int vertialLineWidth;
int verticalLineHeight;
int numberOfObjectsOnLine;
int spaceBetweenObjects;
int objectsStartingPoint;

UILabel *nameOfTimeLine;
UILabel *taskNameLabel;
UILabel *dateDueLabel;




IBOutlet UIScrollView *timeLineScrollView;

}
@property(nonatomic, retain) AppDelegate * appDelegate;
@property int timeLineType;
@property int horizontalLineWidth;
@property int horizontalLineHeight;
@property int vertialLineWidth;
@property int verticalLineHeight;
@property int numberOfObjectsOnLine;
@property int spaceBetweenObjects;
@property int objectsStartingPoint;
@property(nonatomic, retain) UILabel * nameOfTimeLine;
@property(nonatomic, retain) UILabel * taskNameLabel;
@property(nonatomic, retain) UILabel * dateDueLabel;
#import "TimeLineCreator.h"


@implementation TimeLineCreator
@synthesize appDelegate;
@synthesize timeLineType;
@synthesize horizontalLineWidth;
@synthesize horizontalLineHeight;
@synthesize vertialLineWidth;
@synthesize verticalLineHeight;
@synthesize taskNameLabel;
@synthesize nameOfTimeLine;
@synthesize numberOfObjectsOnLine;
@synthesize dateDueLabel;
@synthesize spaceBetweenObjects;
@synthesize objectsStartingPoint;

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
projects = [[NSMutableArray alloc] initWithArray:self.appDelegate.projects];
teamMembers = [[NSMutableArray alloc] initWithArray:self.appDelegate.teamMembers];
tasks  = [[NSMutableArray alloc] initWithArray:self.appDelegate.tasks];


if(objectsStartingPoint == 0){
    objectsStartingPoint = 30;
}
NSLog(@"objectStartingPoint is %i", objectsStartingPoint);
horizontalLineWidth = objectsStartingPoint + (numberOfObjectsOnLine *spaceBetweenObjects);

}