How do I import a swift file into objective c?
Answer / Bhanu Pratap Singh
"To import a Swift file into Objective-C, you'll need to create a bridge header file (.h) for your Objective-C source file and use the "#import" directive to include the Swift file."
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain types of protocol?
What is synthesized in objective-c?
What are nsautoreleasepool?
What does alloc mean in objective c?
How we can layout subviews in a view?
What is toll-free bridging and when is it useful?
What is objective c programming used for?
Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
Why create a custom view?
How do you check for leaks?
Explain what is @synthesize in objective-c?
Is objective c deprecated?