What is the correct way to import Objective-C files into Swift?
Correct Answer: Objective-C classes are imported via a Bridging Header.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Swift Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Swift MCQ Questions
What does Swift compile to?
Please check following code and tell what can be problem? import UIKitvarintVar:Int?=3 intVar = nil varstrVar:StringstrVar = nil
Closures capture ____ reference of objects by default
Objective-C nullable properties will appear as __ properties when imported to Swift project.
Objective-C class can be instantiated in Swift class only through
What are the names of the input parameters in the following function: func potteryBarn (name: String, score: Int) -> String {return 'Hello (name)! Your score is (score).'}
What is the return type in the following declaration: func potteryBarn (name: String, score: Int) -> String { return 'Hello (name)! Your score is (score).'}
What is the result of the following code? func potteryBarn (name: String, score: Int) -> String { return 'Hello (name)! Your score is (score).' } potteryBarn ('Tom' , 2)
When declaring a function, what symbol is used to indicate that an internal parameter name should also be used as an external parameter?
In what order will the following statements appear in the console? println('1') dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY _DEFAULT, 0), {println('2')}); println('3')