w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
unexpectedly found nil while unwrapping an Optional

Most likely that happens because groupNameTF is nil. A quick workaround is to protect that with an if:

var group: Group? {
    didSet {
        if groupNameTF != nil {
            groupNameTF.text = group?.name
        }
    }
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.