MCQs > IT & Programming > Swift > How could we cast the following array into an NSArray that accesses the NSArray method:

Swift MCQs

How could we cast the following array into an NSArray that accesses the NSArray method:
componentsJoinedByString() < let arr = ["1", "2", "3"]

Answer

Correct Answer: (arr as NSArray).componentsJoinedByString(",")

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it