Answers for "check nil int in ios swift"

1

how to check object is nil in swift

if let variableName = abc { // If casting, use, eg, if let var = abc as? NSString
    // variableName will be abc, unwrapped
} else {
    // abc is nil
}
Posted by: Guest on November-20-2019

Code answers related to "Swift"

Browse Popular Code Answers by Language