🔤Objective-C
Also known as ObjC, Objective C, Obj-C
The old way to code Apple apps, from before Swift. It is built on C.
Think of it like
It is like an old map of a town. Most people now use the new one.
Example
Emma joins a team with a ten-year-old iPhone app. Half of it is Objective-C, and new screens are written in Swift.
Why it matters
Lots of working Apple code is in it. Someone has to read and fix that code.
Definition
Example code
objectivec
NSString *name = @"Lucy";
NSLog(@"Hello, %@", name);Common mistake
Key takeaways
- 1C plus objects. Built on top of C.
- 2Apple's older choice. Before Swift.
- 3Mixes with Swift. Both work in one app.