What is the difference between #import and #include in objective-c?
Answer / Pawan Kumar Sahu
Both #include and #import directives are used to include header files in Objective-C. The main difference lies in how they handle file inclusion. #include will include the specified header file multiple times if it is included from different places, while #import prevents multiple inclusions of the same header file.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to make a code snippet thread safe?
What is the difference between class and category?
Is swift or objective c better?
What is the protocol in objective c?
What are the types of ios binaries you can create using xcode?
What does __ block do?
How do I create a bridge header in objective c?
Explain mutable types in objective c programming language?
What is difference between datasource and delegate?
Explain class definition in objective-c?
Explain the difference between uiwindow and uiview?
What is better objective c or swift?