Function Syntax in Objective-C

Do all functions (unlike class / instance methods) use Objective-C's C syntax to declare and call?

+3
source share
2 answers

well, actually it's C. Objective-C is a superset of C, meaning you can use whatever C construct you want, and the compiler will handle it. Just declare the C functions as usual, and name them as you normally would.

+6
source

Yes Yes. Objective-C is built on top of C, so the C syntax is valid.

+3
source

Source: https://habr.com/ru/post/1729155/


All Articles