Before Swift, every iPhone app was written in Objective-C. It is a thin layer on top of C that adds objects, message passing, and the frameworks that still power macOS and iOS today. You will not start a new app in Objective-C in 2026, but you will meet it constantly: in old codebases, in Apple's own frameworks, and in any job that maintains an app written before 2014.
Objective-C looks strange at first because method calls use square brackets and named parameters. Here is a tiny example:
#import <Foundation/Foundation.h>
int main ( int argc , const char * argv [ ] ) { @autoreleasepool { NSString * name = @ "Arhan" ; NSLog ( @ "Hello, %@! You are learning Objective-C." , name ) ; } return 0 ; }
Enter fullscreen mode
Exit fullscreen mode
NSString is a string object, %@ prints an object, and NSLog writes to the console. The @ symbol marks Objective-C additions to C: @"" for strings, @[] for arrays, @{} for dictionaries.β¦