Category Archives: Objective-C

Instantiation in Objective-C

Instantiation in Objective-C consists of allocating memory for the instance and calling init. NSString* foo = [[NSString alloc] init];

Posted in Objective-C | Leave a comment

Logging output in Objective-C (Cocoa Framework)

NSLog can be used for outputting messages to the console for debugging purposes. – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. // Add the tab bar controller's view to the window and display. [self.window addSubview:tabBarController.view]; [self.window makeKeyAndVisible]; NSLog(@"Application didFinishLaunchingWithOptions"); return YES; } Output:

Posted in Objective-C | Leave a comment
  • Advertisement

  • Categories