add a new file in which select cococatouch and select Objective -C class, and then go to the next click.
you show below screen
below you need to choose with xib for the user Interface.and next
AppDelegate.h:
@class ViewController; @interface AppDelegate : UIResponder <UIApplicationDelegate> { ViewController *viewObj; UINavigationController *navObj; } @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) ViewController *viewObj; @property (strong, nonatomic) UINavigationController *navObj;
AppDelegate.m:
@synthesize viewObj,window,navObj; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; viewObj = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; navObj = [[UINavigationController alloc] initWithRootViewController:viewObj]; window.rootViewController=navObj; [window makeKeyAndVisible]; return YES; }

source share