Salut tous le monde,

Mon but c'est de creer une bare de navigation (comme header sous html) mais lorsque je compile mon application , j'ai cette erreur: Thread 1: signal SIGABRT

voici mon code AppDelegate.m
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import "AppDelegate.h"
#import "ViewController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    self.viewController=[[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
    // Override point for customization after application launch.
    UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:self.viewController];
    self.window.rootViewController=navController;
    [self.window makeKeyAndVisible];
    return YES;
}
voici mon code AppDelegate.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
 @property (strong,nonatomic) UIViewController *viewController;
@end
merci d'avance pour votre aide