MCQs > IT & Programming > Swift > How to get userinfo from NSNotification in swift 3?

Swift MCQs

How to get userinfo from NSNotification in swift 3?

Answer

Correct Answer: func downloadProgress(notification:NSNotification){ if let userInfo = notification.userInfo as [String: Any] { print(userInfo) if let progressValue = userInfo["progressPercentage"] as? Float { if progressValue > 0.01{ } } } }

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