MCQs > IT & Programming > Swift > How to extract a string from URL data?

Swift MCQs

How to extract a string from URL data?

Answer

Correct Answer: import UIKit var url = "http://www.google.com/ss.js?id=123456789"; var id = url.componentsSeparatedByString("id="); print(id[1]) ;

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