in Technology by (1.8m points)
What is an extension in Objective-C?

1 Answer

0 votes
by (1.8m points)

Extensions are actually categories without the category name. It’s often referred as anonymous categories. The syntax to declare a extension uses the @interface keyword, just like a standard Objective-C class description, but does not indicate any inheritance from a subclass. Instead, it just adds parentheses, as shown below

@interface ClassName ()


Related questions

0 votes
asked Nov 10, 2020 in Technology by JackTerrance (1.8m points)