Xcode 5 simple example

LINK=>

Creating Hello World App Using Xcode 5 and Interface Builder

App.h
#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

 

App.m
– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
HelloWorldViewController *viewController = [[HelloWorldViewController alloc] initWithNibName:@”HelloWorldViewController” bundle:nil];
self.window.rootViewController = viewController;

[self.window makeKeyAndVisible];
return YES;
}

Leave a comment