0 votes
in Technology by (438k points)
What is an extension in Objective-C?

1 Answer

0 votes
by (438k 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 ()

@end

Related questions

0 votes
1 answer
asked Nov 10, 2020 in Technology by JackTerrance (438k points)
0 votes
1 answer
asked Nov 10, 2020 in Technology by JackTerrance (438k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 10, 2020 in Technology by JackTerrance (438k points)
...