nombre de tipo desconocido en el objetivo c

Soy bastante nuevo en el objetivo c y tengo algunos problemas básicos.

Escribí un programa simple usando un navegador, y todo funcionó bien. Luego agregué algunas líneas de código (ni siquiera recuerdo exactamente qué, y parece no tener conexión con el problema) y el problema ocurrió. Intenté ctrl + z, y el problema seguía siendo:

Yo ejecuto el programa y obtengo estos errores:

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

while mainController es la primera pantalla que se carga.

Este es el archivo 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

esta es la parte relevante del archivo 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;
}

Y esto es 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

ya funcionó ...
¿Puedes resolverlo?

Gracia

Respuestas a la pregunta(12)

Su respuesta a la pregunta