unknown type name in objective c

Я совсем новичок в objective c, и у меня возникли некоторые базовые проблемы.

Я написал простую программу, используя навигатор, и все работало нормально. Затем я добавил несколько строк кода (даже не помню, что именно, и, кажется, это не связано с проблемой), и возникла проблема. Я попробовал ctrl+z, и проблема осталась:

Я запускаю программу и получаю такие ошибки:

1. unknown type name "mainController"
2. property with 'retain (or strong)' attribute must be of object type

while mainController is the first screen to be loaded.

Это файл appDelegate.h:

#import <UIKit/UIKit.h>
#import "mainController.h"
#import "WishesList.h"
#import "Wish.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) IBOutlet UINavigationController *navController;
@property (strong, nonatomic) IBOutlet mainController *viewController; // this line creates the errors
@property (strong, nonatomic) WishesList *WishesArray;
@property (strong, nonatomic) NSIndexPath *temp;

@end

это соответствующая часть файла appDelegate.m:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:    (NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    WishesArray = [[WishesList alloc]init];
    temp = nil;
    [self setViewController:[[mainController alloc]init]];
    [self setNavController:[[UINavigationController alloc]initWithRootViewController:self.viewController]];
    [self.window setRootViewController:navController];
    [self.window makeKeyAndVisible];
    return YES;
}

А это mainController.h:

#import <UIKit/UIKit.h>
#import "addWishController.h"
#import "displayWish.h"
#import "WishesList.h"
#import "Wish.h"

@interface mainController : UIViewController

@property (nonatomic, weak) WishesList *list;
@property (nonatomic, strong) IBOutlet UITableView *wishTable;

- (void)addWish;

@end

он уже работал...
вы можете разобраться?

спасибо

18
задан Nate Symer 23 September 2012 в 03:59
поделиться