The following attribute can be used to allow a protocol to contain optional functions and to be used in ObjC?
Correct Answer: @objc
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 is the return type of the following code? func nameFunc() -> String { return 'Jhon' }
What is the correct way to import Objective-C files into Swift?
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
To loop through a range of the numbers 1-9 without using 9, you would write…
Which is the correct optional form of a down cast operator?
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)